Disconnect events not triggered #5176
Replies: 1 comment
-
I was using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Socket.io clients are able to connect fine, however when they disconnect they do not trigger a
disconnect
on the server and therefore my server does not know to cleanup subscriptions for clients through external services. I've tried a few approaches, but by all means neither base connections or namespace connections triggerdisconnect
events. Whether a client disconnects or just outright closes (crash, closing software, etc) nothing happens server-side.For context, I'm using AdonisJS v6 to set up a basic socket.io service with two namespaces: 'stations', and 'widgets/message-board'. The client connects to both namespaces, one via electron main and the other via electron renderer. The only special part about all of this is that rather than NGINX I chose Caddy as my reverse proxy, which consists of only a single entry, since Caddy handles WebSockets automatically
Beta Was this translation helpful? Give feedback.
All reactions