The library isn't compatible with Swift 3.1. Please update it as soon as possible.
I've released 8.3.1, which should fix CocoaPods.
Hi, thank you for updating the new release for Swift 3.1. However, would it be possible to remove some of the Swift Compiler Warnings?



I can fix the first warning. But the other one will be fixed in an update to the WebSocket dependency. I just include the dependency here. But track changes done from the upstream.
Hi, I am trying to use this socketio to communicate my macbook to a 3D printer I am developing. I am connecting to a microcontroller (NodeMCU, I don't know if it matters).
I receive the following messages on the microcontroller:
GET /socket.io/?transport=polling&b64=1 HTTP/1.1
Host: 192.168.0.16:80
Accept: /
Accept-Language: pt-br
Connection: keep-alive
Accept-Encoding: gzip, deflate
User-Agent: 3DPrinterIC/1 CFNetwork/811.4.18 Darwin/16.5.0 (x86_64)
My log is:
SocketEngine: Starting engine. Server: http://192.168.0.16:80
2017-03-28 18:05:08.433846-0300 3DPrinterIC[11162:95863] LOG SocketEngine: Handshaking
2017-03-28 18:05:08.434140-0300 3DPrinterIC[11162:95863] LOG SocketEnginePolling: Doing polling request
2017-03-28 18:05:11.435585-0300 3DPrinterIC[11162:95863] ERROR SocketEnginePolling: The request timed out.
2017-03-28 18:05:11.435736-0300 3DPrinterIC[11162:95863] ERROR SocketEngine: The request timed out.
2017-03-28 18:05:11.435826-0300 3DPrinterIC[11162:95863] ERROR SocketIOClient: The request timed out.
2017-03-28 18:05:11.436126-0300 3DPrinterIC[11162:95863] LOG SocketIOClient: Handling event: error with data: ["The request timed out."]
2017-03-28 18:05:22.532266-0300 3DPrinterIC[11162:95863] LOG SocketIOClient: Trying to reconnect
2017-03-28 18:05:22.532454-0300 3DPrinterIC[11162:95863] LOG SocketIOClient: Handling event: reconnectAttempt with data: [-30]
The code I am using is the example shown on GitHub.
What can I be doing wrong if I am receiving data on my microcontroller?
Thanks in advance
@FelipeKazuo Are you actually using socket.io on your microcontroller? If no, this library won't work with a raw WebSocket server.
Issue resolved, although there are some compiler warnings. Closed.
Compiler warnings should be fixed in 8.3.2