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
Diff: SocketIO.h
- Revision:
- 2:2979735cb379
- Parent:
- 0:5e68215d973a
- Child:
- 10:997b8c5d2d46
diff -r 1f6bcf088966 -r 2979735cb379 SocketIO.h --- a/SocketIO.h Mon Jul 08 02:18:13 2013 +0000 +++ b/SocketIO.h Mon Jul 08 02:43:43 2013 +0000 @@ -135,13 +135,15 @@ */ bool close(); + protected: + Websocket *ws; // websocket endpoint + private: // Variables int version; // default socket.io version char *url; // base URL endpoint to connect to. Example: "myapp.herokuapp.com" char *url_session_key; // generated session key URL - used to extract the session key - char *url_session; // session URL - specific socket.io session to bind to - Websocket *ws; // websocket endpoint + char *url_session; // session URL - specific socket.io session to bind to char *session_key; // our session key char *ws_channel; // our websocket channel for the session