First version of the websocket server