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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -