Method: ActionCable::Channel::Streams#stop_stream_from
- Defined in:
- actioncable/lib/action_cable/channel/streams.rb
#stop_stream_from(broadcasting) ⇒ Object
Unsubscribes streams from the named broadcasting.
121 122 123 124 125 126 127 |
# File 'actioncable/lib/action_cable/channel/streams.rb', line 121 def stop_stream_from(broadcasting) callback = streams.delete(broadcasting) if callback pubsub.unsubscribe(broadcasting, callback) logger.info "#{self.class.name} stopped streaming from #{broadcasting}" end end |