gitlab-org--gitlab-foss/app/assets/javascripts/actioncable_consumer.js

11 lines
287 B
JavaScript
Raw Normal View History

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;