javascript - Socket.io emit() delay / buffer flush? -
i'm using socket.io
send messages browser. on node.js side i'm doing
socket.emit('message', data);
on browser-side i'm doing
socket.on('message', handledata);
now works fine. testing purposes i'm manually triggering (from node-inspector console) socket.emit()
. i'm able 2-3 times after next message takes long time deliver. 10 seconds.
my messages rather short. compression enabled , object json {"could about": "this long"}
. when testing longer strings, messages sent instantly. has buffering/optimization, in our case, it's important messages sent instantly.
does have insight delay? thanks
Comments
Post a Comment