zwopple / PocketSocket

Objective-C websocket library for building things that work in realtime on iOS and OS X.
Other
414 stars 129 forks source link

[Server] Compressed bit must be 0 if no negotiated deflate-frame extension #52

Open kisileno opened 8 years ago

kisileno commented 8 years ago

My server side code is using PSWebSocketServer (OS X 10.11.5) and sporadically I am getting this error on JavaScript client side (WKWebView, Safari 9.1.1):

[Error] WebSocket connection to 'ws://localhost:<port>' failed: Compressed bit must be 0 if no negotiated deflate-frame extension

What could it be? Thanks!

robertjpayne commented 8 years ago

@brainlessgit it's because of the permessage-deflate must be a bug in my server code. Does your Wehn you open the WS connection can you specify HTTP request headers? You may need to something like headers["Sec-WebSocket-Extensions"] = "" to ensure it's disabled.

I'll have to dig into why this bug occurs...