Implemented the web socket server