Adding websocket handlers and view.