IN-573 Make WebSocket on error compatible with faye-websocket 0.7.0 and ...

...0.7.4
@akarpik