joewalnes / reconnecting-websocket

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

* Fixed ie11 problem by using a document.createEvent('CustomEvent'); in... #28

Closed ManuelB closed 9 years ago

ManuelB commented 9 years ago

...stead of new Event this will prevent 'Object doesn't support this action'

This will make reconnecting web socket with work IE.

http://stackoverflow.com/questions/19345392/why-arent-my-parameters-getting-passed-through-to-a-dispatched-event/19345563#19345563

drewnoakes commented 9 years ago

Sorry, I broke this in #26...

Looks good (haven't tested though).

ManuelB commented 9 years ago

No problem. Business as usual. This code should have a qunit test suite that is run automatically on multiple browsers.

sediyev commented 9 years ago

Thanks for the fix!