aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/lib/rails/generators/channel/templates/javascript/consumer.js.tt
blob: 0eceb59b18af9bd7365a05078b4d3c977ff56705 (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 { createConsumer } from "@rails/actioncable"

export default createConsumer()