1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Light edits to Action Cable Overview guide

[ci skip]
This commit is contained in:
Jon Moss 2016-05-28 16:40:10 -04:00
parent 3b1b957b6f
commit 350b7b6162
No known key found for this signature in database
GPG key ID: 7CE26AA47EFC5B12

View file

@ -84,7 +84,7 @@ The cookie is then automatically sent to the connection instance when a new conn
is attempted, and you use that to set the `current_user`. By identifying the connection
by this same current_user, you're also ensuring that you can later retrieve all open
connections by a given user (and potentially disconnect them all if the user is deleted
or deauthorized).
or unauthorized).
### Channels
@ -138,7 +138,7 @@ end
### Connections
Consumers require an instance of the connection on their side. This can be
established using the following Javascript, which is generated by default in Rails:
established using the following JavaScript, which is generated by default in Rails:
#### Connect Consumer
@ -155,7 +155,7 @@ established using the following Javascript, which is generated by default in Rai
}).call(this);
```
This will ready a consumer that'll connect against /cable on your server by default.
This will ready a consumer that'll connect against `/cable` on your server by default.
The connection won't be established until you've also specified at least one subscription
you're interested in having.