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

Files at this revision

API Documentation at this revision

Comitter:
ansond
Date:
Mon Jul 08 03:50:35 2013 +0000
Parent:
5:912301390ce1
Child:
7:a9bafd7a45fc
Commit message:
fixes to session URL

Changed in this revision

SocketIO.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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