handleWebSocket

Makes a test request that sets up a websocket session and waits for completion.