mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update readme to remove js from example, copies structure from https://github.com/rails/actioncable-examples
This commit is contained in:
parent
c7dc339b1d
commit
e6812303e6
1 changed files with 1 additions and 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"
|
||||
|
|
Loading…
Reference in a new issue