react-use-websocket
react-use-websocket copied to clipboard
Add sendMessage as a parameter of the onOpen handler
It looks like the sendMessage paramter was added to onOpen as part of #32 but has since been removed. Could we put this back, or is there a better way to send a message in the onOpen handler?