Fix websocket error handing

Websockets have sockets, not responses.
Merge pull request #518 from bfirsh/fix-ws-error-handling

Fix websocket error handing