Make websocket endpoint more tolerant