removing onerror argument from websocket send

https://developer.mozilla.org/en-US/docs/WebSockets/WebSockets_reference/WebSocket