about summary refs log tree commit diff stats
path: root/test/dummy/app/assets/javascripts/cable.js
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-09-16 18:46:55 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-09-16 18:46:55 -0400
commit5e62e771bf14f58dd1622d2e3631309caa201349 (patch)
tree76143baae833a4cfe0e05cefb18b5a31d15b74e9 /test/dummy/app/assets/javascripts/cable.js
downloadpokeviewer-5e62e771bf14f58dd1622d2e3631309caa201349.tar.gz
pokeviewer-5e62e771bf14f58dd1622d2e3631309caa201349.tar.bz2
pokeviewer-5e62e771bf14f58dd1622d2e3631309caa201349.zip
Initial commit
Diffstat (limited to 'test/dummy/app/assets/javascripts/cable.js')
-rw-r--r--test/dummy/app/assets/javascripts/cable.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/dummy/app/assets/javascripts/cable.js b/test/dummy/app/assets/javascripts/cable.js new file mode 100644 index 0000000..739aa5f --- /dev/null +++ b/test/dummy/app/assets/javascripts/cable.js
@@ -0,0 +1,13 @@
1// Action Cable provides the framework to deal with WebSockets in Rails.
2// You can generate new channels where WebSocket features live using the `rails generate channel` command.
3//
4//= require action_cable
5//= require_self
6//= require_tree ./channels
7
8(function() {
9 this.App || (this.App = {});
10
11 App.cable = ActionCable.createConsumer();
12
13}).call(this);