Files
manyfold/app/javascript/channels/consumer.ts
T
2021-03-19 10:30:19 +00:00

7 lines
270 B
TypeScript

// 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()