in src/core/connectionHelpers/LpcConnectionHelper.js [13:30]
constructor(contactId, initialContactId, connectionDetailsProvider, websocketManager) {
super(connectionDetailsProvider);
this.cleanUpBaseInstance = !websocketManager;
this.tryCleanup();
if (!LpcConnectionHelper.baseInstance) {
LpcConnectionHelper.baseInstance = new LPCConnectionHelperBase(connectionDetailsProvider, websocketManager);
}
this.contactId = contactId;
this.initialContactId = initialContactId;
this.status = null;
this.eventBus = new EventBus();
this.subscriptions = [
LpcConnectionHelper.baseInstance.onEnded(this.handleEnded.bind(this)),
LpcConnectionHelper.baseInstance.onConnectionGain(this.handleConnectionGain.bind(this)),
LpcConnectionHelper.baseInstance.onConnectionLost(this.handleConnectionLost.bind(this)),
LpcConnectionHelper.baseInstance.onMessage(this.handleMessage.bind(this))
];
}