fix: clean up socketio dynamic namespaces

While serving many sites it's best to close down namespace when last
connection is closed.

refer https://github.com/socketio/socket.io/pull/4602
This commit is contained in:
Ankush Menat 2023-07-29 20:33:55 +05:30
parent ec5f8fcfa1
commit 84188587fa

View file

@ -9,6 +9,7 @@ let io = new Server({
origin: true,
credentials: true,
},
cleanupEmptyChildNamespaces: true,
});
// Multitenancy implementation.