fix: off doesn't exist on socket
This commit is contained in:
parent
6c143e38af
commit
ca28e52231
|
@ -17,7 +17,7 @@ export class SocketServer extends decorateServer(class {}) {
|
|||
}
|
||||
|
||||
close(fn) {
|
||||
this.io.off('connect', this.onConnect);
|
||||
this.io.removeListener('connect', this.onConnect);
|
||||
this.io.close(fn);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user