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 12:8fe60d9ca3bf, committed 2013-11-10
- Comitter:
- ansond
- Date:
- Sun Nov 10 02:17:45 2013 +0000
- Parent:
- 11:b32005b69b5c
- Commit message:
- updates
Changed in this revision
SocketIO.cpp | Show annotated file Show diff for this revision Revisions of this file |
SocketIO.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r b32005b69b5c -r 8fe60d9ca3bf SocketIO.cpp --- a/SocketIO.cpp Fri Nov 08 20:10:26 2013 +0000 +++ b/SocketIO.cpp Sun Nov 10 02:17:45 2013 +0000 @@ -176,6 +176,7 @@ bool haveKey = false; HTTPClient http; char response[513]; + memset(response,'\0',513); // make sure we have buffers if (this->session_key != NULL && this->ws_channel != NULL) {
diff -r b32005b69b5c -r 8fe60d9ca3bf SocketIO.h --- a/SocketIO.h Fri Nov 08 20:10:26 2013 +0000 +++ b/SocketIO.h Sun Nov 10 02:17:45 2013 +0000 @@ -37,7 +37,7 @@ #define DEFAULT_VERSION 1 // Default SocketIO message length (suggestion only...) -#define SOCKETIO_MESSAGE_LENGTH 256 +#define SOCKETIO_MESSAGE_LENGTH 512 // HTTP support for session key retrieval #include "HTTPClient.h"