I am using JavaScript to connect to a websocket.
I am seeing an error message in the JavaScript console of google Chrome 33.0.1750.117.
The error occurs on the following line of JavaScript:
ws = new WebSocket("ws://*.*.*.*", "sub_protocol");
This is the error being displayed:
error WebSocket extension "x-webkit-deflate-frame" is deprecated.
The server side is using libwebsockets with the C programming language.
----- Update -----
I have been looking around and found a way to view the WebSocket frames in google Chrome. If you go to chrome://net-internals/ and then click on Sockets and then click on the link to View live sockets. You will see all the currently connected websocket connections.
t=1394662462152 [st=1] -SOCKET_STREAM_CONNECT
t=1394662462153 [st=2] WEB_SOCKET_SEND_REQUEST_HEADERS
--> GET / HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: *.*.*.*:**
Origin: http://localhost
Sec-WebSocket-Protocol: sub_protocol
Pragma: no-cache
Cache-Control: no-cache
Sec-WebSocket-Key: 98P9cdkKOc5ouQOvgUHiJQ==
Sec-WebSocket-Version: 13
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits, x-webkit-deflate-frame
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36
Cookie: [63 bytes were stripped]
t=1394662462153 [st=2] SOCKET_STREAM_SENT
t=1394662462157 [st=6] SOCKET_STREAM_RECEIVED
t=1394662462157 [st=6] WEB_SOCKET_READ_RESPONSE_HEADERS
--> HTTP/1.1 101 Switching Protocols
Upgrade: WebSocket
Connection: Upgrade
Sec-WebSocket-Accept: I/gi7/zdRzUKT9DwGS5xWBsmak0=
Sec-WebSocket-Protocol: sub_protocol
Sec-WebSocket-Extensions: x-webkit-deflate-frame
What is causing this error to occur in Google Chrome?
How can I get rid of the error message and use a non-deprecated WebSocket Extension?