channel
generator to create an ActionCable Channel class called ExampleChannel
. If this is the first time you've generated a Channel, a number of important files and folders will be created.ExampleChannel
will receive any broadcasts sent to to a stream called visitors
. We'll talk more about streams soon. For now, visitors
is for operations that will be sent to everyone currently looking at your site.CableReady
and modify the received
method to check incoming data for CableReady broadcasts.