function sendCumulativeMessages(timestamp, clientSync, res) {
    if (timestamp == null) timestamp = 0;
    if (clientSync == null) clientSync = 0;
    var data = getCumulativeMessages(timestamp, clientSync);
    res.send(data);
}
// send all missing messages to client, or resends some messages after redis restart
send all missing messages to client, or resends some messages after redis restart
send all missing messages to client or resends some messages after redis restart
function sendCumulativeMessages(timestamp, clientSync, res) {
    if (timestamp == null) timestamp = 0;
    if (clientSync == null) clientSync = 0;
    var data = getCumulativeMessages(timestamp, clientSync);
    res.send(data);
}
function sendCumulativeMessages ( timestamp , clientSync , res ) { if ( timestamp == null ) timestamp = 0 ; if ( clientSync == null ) clientSync = 0 ; var data = getCumulativeMessages ( timestamp , clientSync ) ; res . send ( data ) ; }
send all missing messages to client, or resends some messages after redis restart
send all missing messages to client or resends some messages after redis restart