BogdanB
Convex Community3y ago
55 replies
Bogdan

Handle client disconnecting?

On the backend, how would i listen for a client disconnecting?

With socket.io i could just add a socket.on("disconnect", callbackFn()) to handle this, is there something similar built into convex?

i thought about using beforeunload but it's unreliable.

any ideas or suggestions?
Was this page helpful?