summaryrefslogtreecommitdiff
path: root/app/javascript/channels/consumer.js
blob: 8ec3aad3ae962b501c348de0d0c6d5ade3802d71 (plain)
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 `bin/rails generate channel` command.

import { createConsumer } from "@rails/actioncable"

export default createConsumer()