Welcome to mirror list, hosted at ThFree Co, Russian Federation.

actioncable_consumer.js « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aeb61e61a3d029bf473226d313f613629101eb49 (plain)
1
2
3
4
5
6
7
8
9
10
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;