simple conflicts are now handled correctly
This commit is contained in:
@@ -69,11 +69,11 @@ class Test extends AbstractConnector {
|
||||
this.globalRoom = globalRoom;
|
||||
}
|
||||
send (userId, message) {
|
||||
globalRoom.buffers[userId].push([this.userId, message]);
|
||||
globalRoom.buffers[userId].push(JSON.parse(JSON.stringify([this.userId, message])));
|
||||
}
|
||||
broadcast (message) {
|
||||
for (var key in globalRoom.buffers) {
|
||||
globalRoom.buffers[key].push([this.userId, message]);
|
||||
globalRoom.buffers[key].push(JSON.parse(JSON.stringify([this.userId, message])));
|
||||
}
|
||||
}
|
||||
disconnect () {
|
||||
|
||||
Reference in New Issue
Block a user