make websocket connection to receive events