instance method
stop_stream_from
Ruby on Rails 7.0.10
Since v6.1.7.10Signature
stop_stream_from(broadcasting)
Unsubscribes streams from the named broadcasting.
Parameters
-
broadcastingreq
Source
# File actioncable/lib/action_cable/channel/streams.rb, line 106
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
Defined in actioncable/lib/action_cable/channel/streams.rb line 106
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Channel::Streams