From a1b58e7b636896ad72b55c08abb45b0e1e6bb9c3 Mon Sep 17 00:00:00 2001 From: gxz Date: Thu, 22 Feb 2024 16:44:55 +0800 Subject: [PATCH] chore: optimize --- package.json | 2 +- src/client.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2d4900b..ab0181c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agoraio-extensions/agora-rtc-sdk-ng-fake", - "version": "1.0.10", + "version": "1.0.11", "private": true, "description": "Fake Agora Web RTC for testing", "repository": { diff --git a/src/client.ts b/src/client.ts index 3baec44..e55cec3 100644 --- a/src/client.ts +++ b/src/client.ts @@ -144,6 +144,9 @@ export class FakeRTCClient extends FakeAgoraEventEmitter { //@ts-ignore websdk的私有属性 this.isStringUID = typeof uid === "string"; this.uid = randUuid(); + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + //@ts-ignore websdk的私有属性 + this._joinInfo?.uid = this.uid; this.channelName = FAKE_CHANNEL_NAME; return Promise.resolve(this.uid); }