Skip to content

Commit

Permalink
Merge pull request #39846 from mehagar/action_cable
Browse files Browse the repository at this point in the history
Refer to channel instead of cable [ci-skip]
  • Loading branch information
jonathanhefner committed Aug 17, 2020
2 parents 6508a5f + bcc3c90 commit 1e0f511
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/source/action_cable_overview.md
Expand Up @@ -35,7 +35,7 @@ connection instance per WebSocket connection. A single user may have multiple
WebSockets open to your application if they use multiple browser tabs or devices.
The client of a WebSocket connection is called the consumer.

Each consumer can in turn subscribe to multiple cable channels. Each channel
Each consumer can in turn subscribe to multiple channels. Each channel
encapsulates a logical unit of work, similar to what a controller does in
a regular MVC setup. For example, you could have a `ChatChannel` and
an `AppearancesChannel`, and a consumer could be subscribed to either
Expand Down Expand Up @@ -185,7 +185,7 @@ A consumer could then be subscribed to either or both of these channels.

Consumers subscribe to channels, acting as *subscribers*. Their connection is
called a *subscription*. Produced messages are then routed to these channel
subscriptions based on an identifier sent by the cable consumer.
subscriptions based on an identifier sent by the channel consumer.

```ruby
# app/channels/chat_channel.rb
Expand Down

0 comments on commit 1e0f511

Please sign in to comment.