* This function generates an event that is compatible with standard * compliant browsers and IE9 - IE11 * * This will prevent the error: * Object doesn't support this action * * http://stackoverflow.com/questions/19345392/why-arent-my-parameters-
(s, args)
| 109 | * @param args Object an optional object that the event will use |
| 110 | */ |
| 111 | function generateEvent(s, args) { |
| 112 | var evt = document.createEvent("CustomEvent"); |
| 113 | evt.initCustomEvent(s, false, false, args); |
| 114 | return evt; |
| 115 | }; |
| 116 | |
| 117 | this.open = function(reconnectAttempt) { |
| 118 | ws = new WebSocket(self.url, protocols || []); |
no outgoing calls
no test coverage detected