consumer.js 266 B

123456
  1. // Action Cable provides the framework to deal with WebSockets in Rails.
  2. // You can generate new channels where WebSocket features live using the `rails generate channel` command.
  3. import { createConsumer } from "@rails/actioncable"
  4. export default createConsumer()