feature/share-libs
js 6 lines 269 Bytes
Raw
1 // Action Cable provides the framework to deal with WebSockets in Rails.
2 // You can generate new channels where WebSocket features live using the `bin/rails generate channel` command.
3
4 import { createConsumer } from "@rails/actioncable"
5
6 export default createConsumer()