diff options
author | Abdelkader Boudih <terminale@gmail.com> | 2015-07-10 00:45:32 +0100 |
---|---|---|
committer | Abdelkader Boudih <terminale@gmail.com> | 2015-07-10 00:45:32 +0100 |
commit | ae0efc73a88f047da735094127152876bd313741 (patch) | |
tree | ad326fe787360da95eb0099ab273da55d9cf7020 | |
parent | 0426068e6b9c56dd4ffd38491025743be6cbef7b (diff) | |
parent | 6661d78eb5fed567886e33806223d386b68d43fd (diff) | |
download | rails-ae0efc73a88f047da735094127152876bd313741.tar.gz rails-ae0efc73a88f047da735094127152876bd313741.tar.bz2 rails-ae0efc73a88f047da735094127152876bd313741.zip |
Merge pull request #19 from lsylvester/readme-client-example-update
Update readme instructions for js
-rw-r--r-- | README.md | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -82,8 +82,15 @@ 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/cable.coffee +# app/assets/javascripts/application_cable.coffee + @App = {} App.cable = Cable.createConsumer "ws://cable.example.com" ``` |