Stop JSON-P requests calling flushConnection() on the server.
Always call handleError() when a WebSocket closes, even if there are no pending messages.