websocket-rails/websocket-rails — pull request #192 by maharifu (2014-03-13 16:53:33+00:00)
Title: Add verification of parsing results in Event.

Prevent the server from crashing when someone passes valid, but badly
formatted JSON.

Sending a bad JSON string to the server can bring it down. For instance, if
encoded_data == "[[\"websocket_rails.pong\", {}]]"

A NoMethodError exception is raised and the server goes down.