module ActionCable::Channel::ChannelStub
Stub stream_from
to track streams for the channel. Add public aliases for subscription_confirmation_sent?
and subscription_rejected?
.
def confirmed?
subscription_confirmation_sent?
end
def rejected?
subscription_rejected?
end
def start_periodic_timers; end
Make periodic timers no-op
def stop_all_streams
@_streams = []
end
def stream_from(broadcasting, *)
streams << broadcasting
end
def streams
@_streams ||= []
end
© 2004–2021 David Heinemeier Hansson
Licensed under the MIT License.