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;
|