async function sendHeartbeatList(socket, monitorID, toUser = false, overwrite = false) {
    let list = await R.getAll(`
        SELECT * FROM heartbeat
        WHERE monitor_id = ?
        ORDER BY time DESC
        LIMIT 100
    `, [
        monitorID,
    ]);

    let result = list.reverse();

    if (toUser) {
        io.to(socket.userID).emit("heartbeatList", monitorID, result, overwrite);
    } else {
        socket.emit("heartbeatList", monitorID, result, overwrite);
    }
}
Send Heartbeat History list to socket
@param {Socket} socket Socket.io instance
@param {number} monitorID ID of monitor to send heartbeat history
@param {boolean} toUser  True = send to all browsers with the same user id, False = send to the current browser only
@param {boolean} overwrite Overwrite client-side's heartbeat list
@returns {Promise<void>}