Class: Com::SessionChannel
- Inherits:
-
ApplicationCable::Channel
- Object
- ApplicationCable::Channel
- Com::SessionChannel
- Defined in:
- app/channels/com/session_channel.rb
Instance Method Summary collapse
Instance Method Details
#subscribed ⇒ Object
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 |
#unsubscribed ⇒ Object
12 13 |
# File 'app/channels/com/session_channel.rb', line 12 def unsubscribed end |