Remove some unused imports
Split WebsocketReceiver into its own class
Add XHR close handling as expected sockjs-protocol test failures
Properly escape JSON characters