Skip to content

Commit

Permalink
Fix notify reconnection to applause
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel committed Oct 12, 2023
1 parent 51d49c6 commit 5b98db9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client/src/app/gateways/base-icc-gateway.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export abstract class BaseICCGatewayService<ICCResponseType> {

private connectionClosingFn: (() => void) | undefined;

private get iccEndpointName(): string {
return ICC_ENDPOINT + `_` + this.serviceDescription;
}

/**
* Constructor to create the Service.
* Subclasses can call {@link setupConnections} after the super call to initialize automatic meeting-based connection handling.
Expand Down Expand Up @@ -73,9 +77,9 @@ export abstract class BaseICCGatewayService<ICCResponseType> {
this.disconnect();

const iccMeeting = `${ICC_PATH}${this.receivePath}?meeting_id=${meetingId}`;
this.httpEndpointService.registerEndpoint(ICC_ENDPOINT, iccMeeting, this.healthPath, HttpMethod.GET);
this.httpEndpointService.registerEndpoint(this.iccEndpointName, iccMeeting, this.healthPath, HttpMethod.GET);
const buildStreamFn = () =>
this.httpStreamService.create<ICCResponseType>(ICC_ENDPOINT, {
this.httpStreamService.create<ICCResponseType>(this.iccEndpointName, {
onMessage: (response: ICCResponseType) => this.onMessage(response),
description: this.serviceDescription
});
Expand Down

0 comments on commit 5b98db9

Please sign in to comment.