Temporarily reverted to JSON all data for WebSockets.
Added error handling so it doesn't take down the server upon failure.