From 5581530930129d7854ed5d99d058939ad9c790c2 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 24 Jun 2017 14:20:22 -0400 Subject: Initial commit --- app/assets/javascripts/cable.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/assets/javascripts/cable.js (limited to 'app/assets/javascripts/cable.js') diff --git a/app/assets/javascripts/cable.js b/app/assets/javascripts/cable.js new file mode 100644 index 0000000..739aa5f --- /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); -- cgit 1.4.1