// 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 ActionCable from "@rails/actioncable" export default ActionCable.createConsumer()