Adds an event listener to the WebSocket
An event type
The callback
Optionaloptions: boolean | AddEventListenerOptionsAdditional native event listener options
Closes the WebSocket from the client
Optionalcode: numberAn optional code to give the server
Removes an event listener from the WebSocket
The original event type
The original callback passed; MUST be a reference to the original function, NOT the same code copy-pasted
Optionaloptions: boolean | EventListenerOptionsAdditional native event listener options
Removes an event listener from the WebSocket
The original event type
The original callback passed; MUST be a reference to the original function, NOT the same code copy-pasted
Optionaloptions: boolean | EventListenerOptionsAdditional native event listener options
Sends data to the WebSocket server
The data
The minimal type used to define the crossplatform browser & Node sockets