joewalnes / reconnecting-websocket

A small decorator for the JavaScript WebSocket API that automatically reconnects
MIT License
4.21k stars 968 forks source link

JS error on page reload in Chrome #66

Open moroq opened 8 years ago

moroq commented 8 years ago

Hi. Any ideas on annoying JS error (Chrome 47.0.2526.106 m): "WebSocket connection to 'ws://ws.url.tld' failed: A server must not mask any frames that it sends to the client." Showing up exactly on page reload right before unloading, fired from line 209 of your script, which is exactly ws = new WebSocket(self.url, protocols || []);

Error does not affect functionality - but this looks unclear)

Thannks