Skip to content

Commit

Permalink
fix: clean up socketio dynamic namespaces
Browse files Browse the repository at this point in the history
While serving many sites it's best to close down namespace when last
connection is closed.

refer socketio/socket.io#4602
  • Loading branch information
ankush committed Jul 29, 2023
1 parent ec5f8fc commit 8418858
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions realtime/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let io = new Server({
origin: true,
credentials: true,
},
cleanupEmptyChildNamespaces: true,
});

// Multitenancy implementation.
Expand Down

0 comments on commit 8418858

Please sign in to comment.