fix: java thread need direct callback socket

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-12-07 11:13:30 +08:00
parent 831f6d0916
commit 5426ec1eed
2 changed files with 4 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ export class Client extends EventEmitter {
}
const nsp = this.server.of(name)
const socket = nsp._add(this, auth, () => {
nsp._add(this, auth, (socket: Socket) => {
this.sockets.set(socket.id, socket)
this.nsps.set(nsp.name, socket)
})