For JS impls, we need to abstract out the WebSocket so that the library can be used in browsers and non-browsers.
This MUST return immediately! It cannot use any type of promise or deferral, or the listener will not be properly attached before events begin firing.
the uri to connect to
A simple error event is passed per the websocket spec - https://www.w3.org/TR/websockets/#concept-websocket-close-fail It doesn't appear that an exact typing for the websocket error event is available, so I am using any.
simple event passed per websocket spec.
Browser implementations do not do ping frames
Browser implementations do not do pong frames
Generated using TypeDoc
Used to abstract implementation details to allow for NodeJS and Browser usage of the library.
WebSocket Clover Interface. Abstracts the WebSocket implementation so that the library is not tied to a Browser implementation.
Interface to connect a websocket implementation to.
https://developer.mozilla.org/en-US/docs/Web/API/WebSocket or https://html.spec.whatwg.org/multipage/web-sockets.html