about summary refs log tree commit diff stats
path: root/app/assets/javascripts/cable.js
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-06-24 14:20:22 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-06-24 14:20:22 -0400
commit5581530930129d7854ed5d99d058939ad9c790c2 (patch)
tree157515f64b34a86e0f6d33dc641e06a7ecc2982c /app/assets/javascripts/cable.js
downloadthoughts-5581530930129d7854ed5d99d058939ad9c790c2.tar.gz
thoughts-5581530930129d7854ed5d99d058939ad9c790c2.tar.bz2
thoughts-5581530930129d7854ed5d99d058939ad9c790c2.zip
Initial commit
Diffstat (limited to 'app/assets/javascripts/cable.js')
-rw-r--r--app/assets/javascripts/cable.js13
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..739aa5f --- /dev/null +++ b/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);