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); }