aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/app/templates/app/javascript/channels/consumer.js
blob: eec7e54b8ab5c84b3928f217c18d63c4c132f5cc (plain) (blame)
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()