Setting up web socket and listening server