Romain added hangup

This commit is contained in:
Ethan Fraenkel
2018-09-04 14:50:44 +02:00
parent a48f955914
commit 95d0c2f5cd
9 changed files with 51 additions and 3 deletions

View File

@@ -5,5 +5,13 @@ class ChatRoomsChannel < ApplicationCable::Channel
def unsubscribed
# Any cleanup needed when channel is unsubscribed
puts "I am now destroyed"
# redirect_to root_path
# ActionCable.server.broadcast('notifications', {
# head: 302, # redirection code, just to make it clear what you're doing
# path: chat_room_path(chat_room), # you'll need to use url_helpers, so include them in your file
# body: { caller: other_caller.id }
# }
# redirect_to root_path
end
end