Fix impl of WebSocket.once