diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-18 15:49:51 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-18 15:49:51 +0200 |
commit | 6deb9f966eb9a280cc16428ba9324ffc15ea60a8 (patch) | |
tree | ec3574856544cad4766a6bb93905089d8086db0a /app/assets/javascripts/cable.js | |
parent | 10ba09f5466fe3d34a5ed78202c35f4e4f9d30e6 (diff) |
Live timelines using ActionCable
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 000000000..71ee1e66d --- /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); |