adding websocket connection between server and client