Closed angel1st closed 7 years ago
Hi Angel,
nice to see people can use this and thanks for your cooperation. Are you sure your other socket.io Clients are actually using websockets and are not using fall back to polling? The JavaScript socket.io client has this build in but it won't work for the ESP8266. Cheers!
But on a second look it is much more likely that the connection URL does not fit. Could you try to use a specific connection URL parameter?
For example:
webSocket.begin("192.168.x.x", 4321, "/socket.io/?transport=websocket");
I changed the default value to the socket.io server default value of "/socket.io/". Makes much more sense.
Hi @timum-viw, thanks for your support. Actually after detailed research, I have decided to move to WebSocket and abandon Socket.io support, since the last one simply adds unnecessary over weight on top of the WebSockets. Hence I didn't check last suggestion, however on the first look it makes sense. Thanks anyways, Angel
Hi there, First of all - it is really good having this port to socket.io, since that way we can keep server side code untouched. Now back to the real issue I faced: Environment
Note: - it seems this Adruino has
lstdc++
added, since I don't get any link errors while building the codeLibs & code I simply grabbed your lib, installed it and then try your BasicExample Here is the exact code I have compiled:
Please Note:
http://192.168.x.x:4321
.So when the app started, I can see successful connection to the network, the after couple of secs I see
[SIoC] Disconnected!
in the Serial Monitor console and this message is the only one after that. It seems I cannot connect to the server. Any ideas are appreciated, Thanks, Angel