mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Now available in action_cable
This commit is contained in:
parent
ea4f0e2bab
commit
21efa5218b
1 changed files with 2 additions and 2 deletions
|
@ -86,8 +86,8 @@ potentially disconnect them all if the user is deleted or deauthorized).
|
|||
The client-side needs to setup a consumer instance of this connection. That's done like so:
|
||||
|
||||
```coffeescript
|
||||
# app/assets/javascripts/application_cable.coffee
|
||||
#= require cable
|
||||
# app/assets/javascripts/cable.coffee
|
||||
#= require action_cable
|
||||
|
||||
@App = {}
|
||||
App.cable = Cable.createConsumer("ws://cable.example.com")
|
||||
|
|
Loading…
Reference in a new issue