A custom hook which allows using a websocket to connect to the server.
A function which can be used to send messages.
Optional
A function which gets invoked each time a message is received.
A function which gets invoked when the socket is opened.
Generated using TypeDoc
A custom hook which allows using a websocket to connect to the server.
Returns
A function which can be used to send messages.