SocketIO updated for K64F usage

Fork of SocketIO by Doug Anson

Revision:
13:1b8ff174aea6
Parent:
12:8fe60d9ca3bf
--- a/SocketIO.cpp	Sun Nov 10 02:17:45 2013 +0000
+++ b/SocketIO.cpp	Thu Oct 09 16:13:12 2014 +0000
@@ -175,13 +175,13 @@
 bool SocketIO::acquireSessionKey() {
     bool haveKey = false;
     HTTPClient http;
-    char response[513];
-    memset(response,'\0',513);
+    char response[SOCKETIO_MESSAGE_LENGTH+1];
+    memset(response,0,SOCKETIO_MESSAGE_LENGTH+1);
     
     // make sure we have buffers
     if (this->session_key != NULL && this->ws_channel != NULL) {
         // request our session key
-        int nread = http.get(this->url_session_key,response,512);
+        int nread = http.get(this->url_session_key,response,SOCKETIO_MESSAGE_LENGTH);
         
         // parse the session key
         if (!nread)