@defcomm/meetingsdk 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -850,6 +850,22 @@ var SFUClient = class {
|
|
|
850
850
|
const participantId = payload.user_id || payload.participant_id;
|
|
851
851
|
this.pendingJoinRequestId = requestId;
|
|
852
852
|
this.onJoinApproved(requestId, participantId);
|
|
853
|
+
if (this.ws?.readyState === WebSocket.OPEN) {
|
|
854
|
+
this.setState("joining");
|
|
855
|
+
this.send({
|
|
856
|
+
type: "join",
|
|
857
|
+
request_id: requestId,
|
|
858
|
+
payload: {
|
|
859
|
+
token: this.token,
|
|
860
|
+
room_code: this.room,
|
|
861
|
+
resume_token: this.resumeToken,
|
|
862
|
+
display_name: this.joinOptions.displayName,
|
|
863
|
+
avatar_url: this.joinOptions.avatarUrl,
|
|
864
|
+
audio_muted: this.desiredAudioMuted,
|
|
865
|
+
video_muted: this.desiredVideoMuted
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
}
|
|
853
869
|
break;
|
|
854
870
|
}
|
|
855
871
|
case "join_rejected": {
|