fix websocket endpoint