websocket now opens correctly