debian-mirror-gitlab/app/assets/javascripts/actioncable_consumer.js
2021-03-11 19:13:27 +05:30

10 lines
287 B
JavaScript

import { createConsumer } from '@rails/actioncable';
import ConnectionMonitor from './actioncable_connection_monitor';
const consumer = createConsumer();
if (consumer.connection) {
consumer.connection.monitor = new ConnectionMonitor(consumer.connection);
}
export default consumer;