Any events on websocket-client disconnect? #2175
-
I need to know that the client (nats.ws) has disconnected without constantly polling all clients every few seconds. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Are you listening for disconnect events? https://github.com/nats-io/nats.ws#lifecycleinformational-events |
Beta Was this translation helpful? Give feedback.
-
You ask for NATS event, so probably this one is what you are looking for |
Beta Was this translation helpful? Give feedback.
Are you listening for disconnect events?
https://github.com/nats-io/nats.ws#lifecycleinformational-events