title: Error Message in Google Chrome WebSocket extension "x-webkit-deflate-frame" is deprecated
body: <p>I am using JavaScript to connect to a websocket. </p>
  
  <p>I am seeing an error message in the JavaScript console of google Chrome 33.0.1750.117. </p>
  
  <p>The error occurs on the following line of JavaScript:</p>
  
  <pre><code>ws = new WebSocket("ws://*.*.*.*", "sub_protocol");
  </code></pre>
  
  <p>This is the error being displayed:</p>
  
  <pre><code>error WebSocket extension "x-webkit-deflate-frame" is deprecated.
  </code></pre>
  
  <p>The server side is using libwebsockets with the C programming language.</p>
  
  <p><strong>----- Update -----</strong></p>
  
  <p>I have been looking around and found a way to <a href="https://blogs.oracle.com/arungupta/entry/logging_websocket_frames_using_chrome" rel="nofollow">view the WebSocket frames</a> 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. </p>
  
  <pre><code>t=1394662462152 [st=1]   -SOCKET_STREAM_CONNECT
  t=1394662462153 [st=2]    WEB_SOCKET_SEND_REQUEST_HEADERS
      --&gt; 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
  --&gt; 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
  </code></pre>
  
  <p>What is causing this error to occur in Google Chrome? </p>
  
  <p>How can I get rid of the error message and use a non-deprecated WebSocket Extension?</p>