diff --git a/src/component/internal/connection.ts b/src/component/internal/connection.ts index 080308e7..bca94c7c 100644 --- a/src/component/internal/connection.ts +++ b/src/component/internal/connection.ts @@ -111,10 +111,18 @@ export class NekoConnection extends EventEmitter { this._url = url.replace(/^http/, 'ws').replace(/\/+$/, '') + '/api/ws' } + public getUrl(): string { + return this._url + } + public setToken(token: string) { this._token = token } + public getToken(): string { + return this._token + } + public setVideo(video: string) { if (!this._state.webrtc.videos.includes(video)) { throw new Error('video id not found')