Skip to content

Commit

Permalink
Socket.nsp to public readonly
Browse files Browse the repository at this point in the history
Manager will remove the namespace'd socket upon socket disconnect, thus allowing subsequent connections to the same namespace to multiplex.
  • Loading branch information
sean256 authored and darrachequesne committed Apr 9, 2024
1 parent 4f6030f commit 28eff92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/manager.ts
Expand Up @@ -476,7 +476,8 @@ export class Manager<
* @param socket
* @private
*/
_destroy(socket: Socket): void {
_destroy(closingSocket: Socket): void {
delete this.nsps[closingSocket.nsp];
const nsps = Object.keys(this.nsps);

for (const nsp of nsps) {
Expand Down

0 comments on commit 28eff92

Please sign in to comment.