debian-mirror-gitlab/app/assets/javascripts/actioncable_consumer.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
287 B
JavaScript
Raw Normal View History

2020-05-24 23:13:21 +05:30
import { createConsumer } from '@rails/actioncable';
2021-03-11 19:13:27 +05:30
import ConnectionMonitor from './actioncable_connection_monitor';
2020-05-24 23:13:21 +05:30
2021-03-11 19:13:27 +05:30
const consumer = createConsumer();
if (consumer.connection) {
consumer.connection.monitor = new ConnectionMonitor(consumer.connection);
}
export default consumer;