removing onerror argument from websocket send

The onerror argument is causing a TypeError in Chrome 25.