awesome-compose/ruby_on_rails-postgres/web/app/javascript/channels/consumer.js
Lukas Pol 474cef8986 move files for web/
Signed-off-by: Lukas Pol <lukaspaespol@gmail.com>
2020-04-20 18:16:44 -03:00

7 lines
266 B
JavaScript

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