wip
This commit is contained in:
parent
03077e308a
commit
5177a71a40
1 changed files with 4 additions and 3 deletions
|
@ -248,12 +248,13 @@ function serverCreated(socket) {
|
|||
);
|
||||
} else {
|
||||
this.on('__identify', function(clientDetails) {
|
||||
var id = clientDetails.id,
|
||||
clientConfig = Object.assign(this.config, {id: clientDetails.id, path: clientDetails.path});
|
||||
let id = clientDetails.id,
|
||||
path = clientDetails.path,
|
||||
clientConfig = Object.assign(this.config, {id: id, path: path});
|
||||
|
||||
this.of[id] = new Client(clientConfig, this.log, socket);
|
||||
this.of[id].id = id;
|
||||
this.of[id].path = clientConfig.path;
|
||||
this.of[id].path = path;
|
||||
|
||||
this.of[id].on('disconnect', function() {
|
||||
delete this.of[id];
|
||||
|
|
Loading…
Add table
Reference in a new issue