Open tinamore opened 7 years ago
looks like the event flow for async goes wrong with socket.io.
Hi @Links2004 , The problem still persists, are you or anyone working on the same? The socket.io client connects to the server in async mode, but is not able to exchange data. And ping timeouts. Is there any work around to the problem, if you can guide me towards what changes needs to be done, I can try to implement them and create a PR. Thanks
This is the output i get in async mode
5:18:45.157 -> [WS-Client][sendHeader] sending header... Done (42721us). 15:18:45.157 -> [WS-Client][handleHeader] RX: HTTP/1.1 101 Switching Protocols 15:18:45.157 -> [WS-Client][handleHeader] RX: Upgrade: websocket 15:18:45.157 -> [WS-Client][handleHeader] RX: Connection: Upgrade 15:18:45.157 -> [WS-Client][handleHeader] RX: Sec-WebSocket-Accept: HAKSJDIUdegk78bfrPRgPkkeeqw= 15:18:45.187 -> [WS-Client][handleHeader] RX: Sec-WebSocket-Protocol: arduino 15:18:45.187 -> [WS-Client][handleHeader] Header read fin. 15:18:45.187 -> [WS-Client][handleHeader] Client settings: 15:18:45.187 -> [WS-Client][handleHeader] - cURL: /socket.io/?transport=websocket&<other params here> 15:18:45.236 -> [WS-Client][handleHeader] - cKey: /eV575vyUW8kN49xpUHfyw== 15:18:45.236 -> [WS-Client][handleHeader] Server header: 15:18:45.236 -> [WS-Client][handleHeader] - cCode: 101 15:18:45.236 -> [WS-Client][handleHeader] - cIsUpgrade: 1 15:18:45.236 -> [WS-Client][handleHeader] - cIsWebsocket: 1 15:18:45.236 -> [WS-Client][handleHeader] - cAccept: HAKSJDIUdegk78bfrPRgPkkeeqw= 15:18:45.236 -> [WS-Client][handleHeader] - cProtocol: arduino 15:18:45.236 -> [WS-Client][handleHeader] - cExtensions: 15:18:45.236 -> [WS-Client][handleHeader] - cVersion: 0 15:18:45.236 -> [WS-Client][handleHeader] - cSessionId: 15:18:45.236 -> [WS-Client][handleHeader] still missing cSessionId try socket.io V3 15:18:47.669 -> sleep disable
also when pinging
15:19:24.436 -> [wsIOc] send ping 15:19:24.436 -> [WS][0][sendFrame] not in WSC_CONNECTED state!?
any idea on why this is happening and how to solve it?
Hi, when i run with "WEBSOCKETS_NETWORK_TYPE NETWORK_ESP8266" is GOOD But when i active NETWORK_ESP8266_ASYNC, then i can not server socket.io. This is log:
how fix issue ?