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:
@ -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
|
||||
|
Reference in New Issue
Block a user