Added very basic WebSocket support to json server

Code style:
Open bracket of scope on newline
Comment on separate line