Class: Com::SessionChannel

Inherits:
ApplicationCable::Channel
  • Object
show all
Defined in:
app/channels/com/session_channel.rb

Instance Method Summary collapse

Instance Method Details

#subscribedObject



4
5
6
7
8
9
10
# File 'app/channels/com/session_channel.rb', line 4

def subscribed
  if verified_receiver.is_a?(Auth::AuthorizedToken)
    stream_from "com:session:#{verified_receiver.identity}"
  else
    stream_from "com:session:#{verified_receiver}"
  end
end

#unsubscribedObject



12
13
# File 'app/channels/com/session_channel.rb', line 12

def unsubscribed
end