SocketIO is a compatibility library on top of the MBED Websockets API. Currently the broadcast paradigm is supported. There is much more to the SocketIO spec that could be built into this API. Have fun!
Dependents: df-2013-thermostat-handson df-2013-minihack-thermostat-complete df-2013-minihack-thermostat df-2013-thermostat-remotes ... more
Revision 3:529ce2bcfe77, committed 2013-07-08
- Comitter:
- ansond
- Date:
- Mon Jul 08 02:50:57 2013 +0000
- Parent:
- 2:2979735cb379
- Child:
- 4:ad06c58c7cf4
- Commit message:
- updates
Changed in this revision
SocketIO.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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); }