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

...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