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:
Jesus Federico
2019-08-09 12:07:38 -04:00
committed by GitHub
parent 921f252223
commit 4d69d06ba1
4 changed files with 29 additions and 3 deletions

View File

@ -18,6 +18,11 @@
class WaitingChannel < ApplicationCable::Channel
def subscribed
stream_from "#{params[:uid]}_waiting_channel"
Rails.logger.info "subscribed [#{params[:useruid]}:#{params[:roomuid]}]"
stream_from "#{params[:roomuid]}_waiting_channel"
end
def unsubscribed
Rails.logger.info "unsubscribed [#{params[:useruid]}:#{params[:roomuid]}]"
end
end