mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-25 10:42:11 +00:00
Romain added hangup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user