aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/rails/app/templates/app/javascript/channels/consumer.js
blob: 76ca3d0f2fd1b3f2edee038d3773e899ec7abe48 (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 "actioncable"

export default ActionCable.createConsumer()