firehoseio / firehose

Build realtime Ruby web applications. Created by the fine folks at Poll Everywhere.
http://firehose.io/
MIT License
727 stars 72 forks source link

Faye::WebSocket::API::ErrorEvent#data doesn't exist so don't try logging it. #46

Closed thoughtless closed 10 years ago

thoughtless commented 10 years ago

In the case of a websocket error on the server, it would raise an error like NoMethodError: undefined methoddata' for #Faye::WebSocket::API::ErrorEvent:0x00000002f062f0`.

However, the code is written to simply log the error rather than raise an exception. This removes the call to the undefined method to get the desired behavior.