channelgenerator 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.
ExampleChannelwill receive any broadcasts sent to to a stream called
visitors. We'll talk more about streams soon. For now,
visitorsis for operations that will be sent to everyone currently looking at your site.
CableReadyand modify the
receivedmethod to check incoming data for CableReady broadcasts.