forked from External/greenlight
GRN2-ZZZ: Added messages for debugging actioncable (#731)
* GRN2-ZZZ: Added messages for debugging actioncable * GRN2-ZZZ: Added data to the js message for debugging actioncable * GRN2-ZZZ: Added data to the js message for debugging actioncable * Log unsubscribe
This commit is contained in:
@ -22,9 +22,24 @@ $(document).on("turbolinks:load", function(){
|
||||
if(controller == "rooms" && action == "join"){
|
||||
App.waiting = App.cable.subscriptions.create({
|
||||
channel: "WaitingChannel",
|
||||
uid: $(".background").attr("room")
|
||||
roomuid: $(".background").attr("room"),
|
||||
useruid: $(".background").attr("user")
|
||||
}, {
|
||||
connected: function() {
|
||||
console.log("connected");
|
||||
},
|
||||
|
||||
disconnected: function(data) {
|
||||
console.log("disconnected");
|
||||
console.log(data);
|
||||
},
|
||||
|
||||
rejected: function() {
|
||||
console.log("rejected");
|
||||
},
|
||||
|
||||
received: function(data){
|
||||
console.log(data);
|
||||
if(data.action = "started"){
|
||||
request_to_join_meeting();
|
||||
}
|
||||
|
Reference in New Issue
Block a user