removing onClose from example websocket endpoint