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:
6:f71f8a61dc98
Parent:
5:912301390ce1
Child:
7:a9bafd7a45fc
--- a/SocketIO.cpp	Mon Jul 08 03:37:20 2013 +0000
+++ b/SocketIO.cpp	Mon Jul 08 03:50:35 2013 +0000
@@ -118,7 +118,7 @@
     this->url_session = new char[256];
     
     // fill the buffer
-    sprintf(this->url_session,"ws://%s/%s",this->url,this->session_key);
+    sprintf(this->url_session,"ws://%s/socket.io/%d/%s",this->url,this->version,this->session_key);
 }
 
 // attempt a connection via websockets