fix: server socket d/c emission

This commit is contained in:
cha0s 2019-04-11 16:16:56 -05:00
parent 6da4e21835
commit fa6ca1ed50

View File

@ -30,6 +30,9 @@ class ServerSocket extends EventEmitter {
this.emit('packet', packet); this.emit('packet', packet);
}); });
} }
this.socket.on('disconnect', (...args) => {
this.emit('disconnect', ...args);
});
} }
send(packet) { send(packet) {