This project is read-only.

Messages waiting on heartbeat

Jan 11, 2013 at 9:04 PM

If I call something like this on the client:

Emit("kioskMessage", message);

And then have this on the server:


socket.on('kioskMessage', function(data) {

   // Broadcast message to all clients

   io.sockets.emit('kioskMessage', data + " back");


I don't get that "back" message on the client right away. I don't seem to get it until whenever the next heartbeat message completes. Am I just doing something wrong?