obdev-friends/app/javascript/channels/consumer.js

7 lines
270 B
JavaScript
Raw Normal View History

2023-12-14 15:50:35 -06:00
// 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()