updating some changes i forgot to commit

This commit is contained in:
Kevin Jahns
2015-09-26 14:42:50 +02:00
parent 5e4c56af29
commit b08aeee4fc
9 changed files with 74 additions and 55 deletions

View File

@@ -59,6 +59,9 @@ class Test extends Y.AbstractConnector {
globalRoom.addUser(this)
this.globalRoom = globalRoom
}
receiveMessage (sender, m) {
super.receiveMessage(sender, JSON.parse(JSON.stringify(m)))
}
send (userId, message) {
globalRoom.buffers[userId].push(JSON.parse(JSON.stringify([this.userId, message])))
}