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:
2:2979735cb379
Parent:
0:5e68215d973a
Child:
3:529ce2bcfe77
--- a/SocketIO.cpp	Mon Jul 08 02:18:13 2013 +0000
+++ b/SocketIO.cpp	Mon Jul 08 02:43:43 2013 +0000
@@ -44,6 +44,7 @@
   
     // if we are connected lets disconnect
     if (this->ws != NULL) {
+        this->ws->send("0::");
         this->ws->close();
         closed = this->ws->is_connected();
     }