Update readme to remove js from example, copies structure from https://github.com/rails/actioncable-examples

This commit is contained in:
Lachlan Sylvester 2015-07-13 20:37:28 +10:00
parent c7dc339b1d
commit e6812303e6

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