aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/javascripts/cable.coffee
blob: 49a7cfa69b24e8c47768200f5f3923ea5cfb2a66 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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.
#
# Turn on the cable connection by removing the comments after the require statements (and ensure it's also on in config/routes.rb).
#
#= require action_cable
#= require_self
#= require_tree ./channels
#
# @App ||= {}
# App.cable = ActionCable.createConsumer()