diff options
author | Teddy Wing | 2017-02-03 19:50:40 +0100 |
---|---|---|
committer | Teddy Wing | 2017-02-03 19:50:40 +0100 |
commit | 0c4c9d3d1e91529c4bb9b4b410293f3c38756e6a (patch) | |
tree | 993636b721c1d196784eb311bf86dd36e16adf50 /app/assets/javascripts/cable.js | |
download | Angular-tutorial-0c4c9d3d1e91529c4bb9b4b410293f3c38756e6a.tar.bz2 |
Initial commit. Base Rails 5.0.1 project.
Diffstat (limited to 'app/assets/javascripts/cable.js')
-rw-r--r-- | app/assets/javascripts/cable.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); |