Fix typos in Action Cable guide [ci skip]
This commit is contained in:
parent
4eaaced784
commit
2ff63580fe
@ -35,7 +35,7 @@ client-server connection instance established per WebSocket connection.
|
||||
## Server-Side Components
|
||||
|
||||
### Connections
|
||||
Connections form the foundaton of the client-server relationship. For every WebSocket
|
||||
Connections form the foundation of the client-server relationship. For every WebSocket
|
||||
the cable server is accepting, a Connection object will be instantiated. This instance
|
||||
becomes the parent of all the channel subscriptions that are created from there on.
|
||||
The Connection itself does not deal with any specific application logic beyond authentication
|
||||
@ -149,7 +149,7 @@ consumer can act as a subscriber to a given channel any number of times.
|
||||
For example, a consumer could subscribe to multiple chat rooms at the same time.
|
||||
(remember that a physical user may have multiple consumers, one per tab/device open to your connection).
|
||||
|
||||
A consumer becomes a subscriber, by creating a subscribtion to a given channel:
|
||||
A consumer becomes a subscriber, by creating a subscription to a given channel:
|
||||
```coffeescript
|
||||
# app/assets/javascripts/cable/subscriptions/chat.coffee
|
||||
# Assumes you've already requested the right to send web notifications
|
||||
|
Loading…
Reference in New Issue
Block a user