hopsoft/stimulus_todomvc

View on GitHub
app/javascript/channels/consumer.js

Summary

Maintainability
A
0 mins
Test Coverage
// 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();