joewalnes / reconnecting-websocket

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

Fix issue 6 #112

Open David-dp- opened 4 years ago

David-dp- commented 4 years ago

Issue 6 (an error occurs in the constructor of both the source and minified versions) always occurred for me in current Chrome/Win10 before this change, and doesn't after this change. This change is the one suggested by others in issue 6.