aboutsummaryrefslogblamecommitdiffstats
path: root/actioncable/lib/rails/generators/channel/templates/javascript/consumer.js.tt
blob: 76ca3d0f2fd1b3f2edee038d3773e899ec7abe48 (plain) (tree)
1
2
3
4
5
6
                                                                        
                                                                                                          
 
                                     
 
                                           
// 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.

import ActionCable from "actioncable"

export default ActionCable.createConsumer()