1
0
postdoc/app/javascript/channels/consumer.js

7 lines
266 B
JavaScript
Raw Permalink Normal View History

2020-12-06 20:49:03 +01:00
// Action Cable provides the framework to deal with WebSockets in Rails.
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
import { createConsumer } from "@rails/actioncable"
export default createConsumer()