From 84188587fa330a05b4c717a25cf1474e55757dd4 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sat, 29 Jul 2023 20:33:55 +0530 Subject: [PATCH] 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 --- realtime/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/realtime/index.js b/realtime/index.js index c60ec66330d1..2fc873b86370 100644 --- a/realtime/index.js +++ b/realtime/index.js @@ -9,6 +9,7 @@ let io = new Server({ origin: true, credentials: true, }, + cleanupEmptyChildNamespaces: true, }); // Multitenancy implementation.