adding a test method to create a websocket connection