Skip to content

Commit

Permalink
Replaced "Cable" by "ActionCable" in CoffeeScript examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
nning committed Dec 21, 2015
1 parent 85a8175 commit 16bee0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actioncable/README.md
Expand Up @@ -364,7 +364,7 @@ Then add the following line to your layout before your JavaScript tag:
And finally, create your consumer like so:

```coffeescript
App.cable = Cable.createConsumer()
App.cable = ActionCable.createConsumer()
```

For a full list of all configuration options, see the `ActionCable::Server::Configuration` class.
Expand Down Expand Up @@ -408,7 +408,7 @@ Example::Application.routes.draw do
end
```

You can use `App.cable = Cable.createConsumer("/websocket")` to connect to the cable server.
You can use `App.cable = ActionCable.createConsumer("/websocket")` to connect to the cable server.

For every instance of your server you create and for every worker your server spawns, you will also have a new instance of ActionCable, but the use of Redis keeps messages synced across connections.

Expand Down

0 comments on commit 16bee0f

Please sign in to comment.