-
Notifications
You must be signed in to change notification settings - Fork 487
Description
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.