diff --git a/openvidu-components-angular/src/app/openvidu-webcomponent/openvidu-webcomponent.component.ts b/openvidu-components-angular/src/app/openvidu-webcomponent/openvidu-webcomponent.component.ts index 1f90272b..8c543b61 100644 --- a/openvidu-components-angular/src/app/openvidu-webcomponent/openvidu-webcomponent.component.ts +++ b/openvidu-components-angular/src/app/openvidu-webcomponent/openvidu-webcomponent.component.ts @@ -326,7 +326,7 @@ export class OpenviduWebComponentComponent implements OnInit { */ constructor(private loggerService: LoggerService, private host: ElementRef, private openviduService: OpenViduService) { this.log = this.loggerService.get('WebComponent'); - this.host.nativeElement.leaveSession = this.leaveSession.bind(this); + this.host.nativeElement.disconnect = this.disconnect.bind(this); } ngOnInit(): void {} @@ -416,7 +416,7 @@ export class OpenviduWebComponentComponent implements OnInit { this.onParticipantCreated.emit(event); } - leaveSession() { + disconnect() { this.openviduService.disconnect(); } diff --git a/openvidu-components-angular/src/app/openvidu-webcomponent/openvidu-webcomponent.main.ts b/openvidu-components-angular/src/app/openvidu-webcomponent/openvidu-webcomponent.main.ts index 44a6e2be..ce77f80b 100644 --- a/openvidu-components-angular/src/app/openvidu-webcomponent/openvidu-webcomponent.main.ts +++ b/openvidu-components-angular/src/app/openvidu-webcomponent/openvidu-webcomponent.main.ts @@ -7,5 +7,9 @@ import { environment } from "../../environments/environment"; enableProdMode(); } + /** + * + * @internal + */ const bootstrap = () => platformBrowserDynamic().bootstrapModule(OpenviduWebComponentModule); bootstrap().catch(err => console.error(err)); \ No newline at end of file