diff options
author | Lachlan Sylvester <lachlan.sylvester@publicisfrontfoot.com.au> | 2015-07-13 20:37:28 +1000 |
---|---|---|
committer | Lachlan Sylvester <lachlan.sylvester@publicisfrontfoot.com.au> | 2015-07-13 20:48:39 +1000 |
commit | e6812303e62dfb1dec18059aa31c07f1ca724c45 (patch) | |
tree | fadca01f3b98adb9dd8788096ea60c99b83be2cf | |
parent | c7dc339b1dbdb1982d82536d87b6e654e7b7108d (diff) | |
download | rails-e6812303e62dfb1dec18059aa31c07f1ca724c45.tar.gz rails-e6812303e62dfb1dec18059aa31c07f1ca724c45.tar.bz2 rails-e6812303e62dfb1dec18059aa31c07f1ca724c45.zip |
Update readme to remove js from example, copies structure from https://github.com/rails/actioncable-examples
-rw-r--r-- | README.md | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -82,14 +82,9 @@ 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: -```javascript -//app/assets/javascripts/application.js - -//= require cable -``` - ```coffeescript # app/assets/javascripts/application_cable.coffee +#= require cable @App = {} App.cable = Cable.createConsumer "ws://cable.example.com" |