added room id in exchange parameters

This commit is contained in:
Beatrice Olivera
2018-08-30 18:42:42 +01:00
parent 5245f2257d
commit c3b072ba38
6 changed files with 77 additions and 15 deletions

View File

@@ -17,10 +17,8 @@ App['chatroom' + chatroomId] = App.cable.subscriptions.create({
room: chatroomId
}, {
connected: () => {
console.log('Connected to ChatRoom ' + chatroomId)
},
received: data => {
console.log(data)
}
})