Finished the websocket stuff