提交 e6812303 编写于 作者: L Lachlan Sylvester

Update readme to remove js from example, copies structure from...

Update readme to remove js from example, copies structure from https://github.com/rails/actioncable-examples
上级 c7dc339b
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册