aboutsummaryrefslogblamecommitdiffstats
path: root/actioncable/lib/rails/generators/channel/templates/javascript/consumer.js.tt
blob: eec7e54b8ab5c84b3928f217c18d63c4c132f5cc (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 "@rails/actioncable"

export default ActionCable.createConsumer()