fix: off doesn't exist on socket

This commit is contained in:
cha0s 2019-04-28 07:27:33 -05:00
parent 6c143e38af
commit ca28e52231

View File

@ -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);
}