fix websocket server endpoint