characters that suffix the
dispatch_event- instead of just
stream_fromis [just] a string, which means that we can construct all manner of dynamic identifiers based on information available to us from the Channel and Connection, as well as a
paramshash that comes from the client when the Channel subscription is received.
paramsyou get from an ActionCable Channel subscription request is conceptually similar to what you get from a typical ActionDispatch controller request. They do not go through the Rails router, however, and they are only for Channel subscriptions.
ApplicationCabledefinition, which supports Devise authentication but falls back on
request.session.idso that nobody is turned away:
metatag with the name
nickname. Anonymous visitors to the site have not yet had an opportunity to be given a salty sailor nickname.
channeland the value will be the name of the channel. An arbitrary number of additional key/value pairs can also be passed, and that's how we tell the server about our nickname (which will be blank if it hasn't been set).