Doug Anson / SocketIO-k64f

Fork of SocketIO by Doug Anson

Revision:
3:529ce2bcfe77
Parent:
2:2979735cb379
Child:
4:ad06c58c7cf4
--- a/SocketIO.cpp	Mon Jul 08 02:43:43 2013 +0000
+++ b/SocketIO.cpp	Mon Jul 08 02:50:57 2013 +0000
@@ -70,6 +70,9 @@
         char buffer[256];
         char *json = this->prepareSocketIOJSONMessage(name,args,buffer);
         
+        // send a heartbeat
+        this->ws->send("2::");
+        
         // send the message
         bytesSent = this->ws->send(json);
     }