class Rage::Cable::Channel

def stream_from(stream)

Other tags:
    Example: Broadcast to the stream -
    Example: Subscribe to a stream -

Raises:
  • (ArgumentError) - if the stream name is not a String

Parameters:
  • stream (String) -- the name of the stream
def stream_from(stream)
  raise ArgumentError, "Stream name must be a String" unless stream.is_a?(String)
  Rage.cable.__protocol.subscribe(@__connection, stream, @__params)
end