-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi @chatziko. As suggested I've moved to Flash 11.2 and have made prgress. When first using the AS3webSocket code in your fork I got the following error:
1119: Access of possibly undefined property enableDeflateStream through a reference with static type com.worlize.websocket:WebSocket.
Obviously when I comment the line //websocket.enableDeflateStream = true;
it does compile and I am getting data transferring. The command prompt shows the following
From Flash = GET /foo?bing=baz HTTP/1.1
Host: 127.0.0.1:8080
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: Uevga4Si87w+khsGAmgGzQ==
Origin: *
Sec-WebSocket-Version: 13
Sec-WebSocket-Protocol: my-chat-protocol
but I then have a handshake issue and the connection drops. I'm alsmost certain that this handshake issue is a failing on my part but am not sure where. the error i get is
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.worlize.websocket::WebSocket/readServerHandshake()[WebSocket.as:793]
at com.worlize.websocket::WebSocket/handleSocketData()[WebSocket.as:440]
What is it that I'm missing ?.. Please bear in mind that I am not a developer but am trying to learn and seeking your guidance.
Also, would it be possible to share any simplified node.js/socket.io script you tested with.
thanks in advance