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

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