1
0
Fork 0
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:
David Heinemeier Hansson 2015-12-18 13:15:52 +01:00
parent ea4f0e2bab
commit 21efa5218b

View file

@ -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")