You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After connection is established. Sometimes the websocket class doesn't receive any heartbeats or any response from server.
Not sure if the socket disconnected after connecting but the disconnect event is not triggered on client. The Debug output is:
webSocketLog: connected
WebSocket.asSocketConnected
webSocketLog: request header:
GET /socket.io/1/flashsocket/88775RSOCWQfp31qwgte HTTP/1.1
The message was sent but there wasn't any response or heartbeat after that.
The trace 'WebSocket.asOnSocketData 'is in this function:
private function onSocketData(event:ProgressEvent):void {
trace('WebSocket.asOnSocketData');
var pos:int = buffer.length;
This doesn't happen always though.
Please Help.
The text was updated successfully, but these errors were encountered:
I'm not exactly sure why, but it seems you are using somewhat old version of the library, because it speaks old WebSocket protocol. It may be fixed by using the latest version of the library. It requires the server to speak RFC version of WebSocket protocol, though.
I built WebSocket.swc from flash-src just 2 - 3 months back.
I am using node.js socket.io on the server. I don't think socket.io supports rfc draft.
Also, there server console has many warnings like 'invalid web socket connection' and
'invalid key'.
I am using this library upon my flex AIR app and for some random clients the Websocket class doesn't establish any connection and it just raises a websocket.close event.
After connection is established. Sometimes the websocket class doesn't receive any heartbeats or any response from server.
Not sure if the socket disconnected after connecting but the disconnect event is not triggered on client. The Debug output is:
webSocketLog: connected
WebSocket.asSocketConnected
webSocketLog: request header:
GET /socket.io/1/flashsocket/88775RSOCWQfp31qwgte HTTP/1.1
Upgrade: WebSocket
Connection: Upgrade
Host: xxx
Origin: http://localhost
Cookie:
Sec-WebSocket-Key1: 3_Q4 172582Fcbc4IY2K
Sec-WebSocket-Key2: Y *2M?7 y# 32 496- 1 _ 36
webSocketLog: sent key3: ²?¹N/M?
WebSocket.asOnSocketData
webSocketLog: response header:
HTTP/1.1 101 WebSocket Protocol Handshake
Upgrade: WebSocket
Connection: Upgrade
Sec-WebSocket-Origin: http://localhost
Sec-WebSocket-Location: xxx
WebSocket.asOnSocketData
webSocketLog: reply digest: ú{"??£y�?ç1N]�%?
WebSocket.asOnSocketData
webSocketLog: received: 1::
webSocketLog: sent: 5:::{xxx}
The message was sent but there wasn't any response or heartbeat after that.
The trace 'WebSocket.asOnSocketData 'is in this function:
private function onSocketData(event:ProgressEvent):void {
trace('WebSocket.asOnSocketData');
var pos:int = buffer.length;
This doesn't happen always though.
Please Help.
The text was updated successfully, but these errors were encountered: