@defcomm/meetingsdk 0.4.2 → 0.4.3
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.d.mts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -561,6 +561,11 @@ var SFUClient = class {
|
|
|
561
561
|
`${this.apiBase}/rooms/${encodeURIComponent(roomCode)}`
|
|
562
562
|
);
|
|
563
563
|
}
|
|
564
|
+
async getJoinState(roomCode) {
|
|
565
|
+
return this.request(
|
|
566
|
+
`${this.apiBase}/rooms/${encodeURIComponent(roomCode)}/join-state`
|
|
567
|
+
);
|
|
568
|
+
}
|
|
564
569
|
async deleteRoom(roomCode) {
|
|
565
570
|
return this.request(
|
|
566
571
|
`${this.apiBase}/rooms/${encodeURIComponent(roomCode)}`,
|
|
@@ -2019,6 +2024,14 @@ var VideoSDKCore = class {
|
|
|
2019
2024
|
});
|
|
2020
2025
|
return client.getRoom(roomCode);
|
|
2021
2026
|
}
|
|
2027
|
+
async getJoinState(roomCode) {
|
|
2028
|
+
const client = this.sfuClient ?? new SFUClient({
|
|
2029
|
+
apiBase: this.apiBase,
|
|
2030
|
+
wsBase: this.wsBase,
|
|
2031
|
+
participantId: this.myId
|
|
2032
|
+
});
|
|
2033
|
+
return client.getJoinState(roomCode);
|
|
2034
|
+
}
|
|
2022
2035
|
async deleteRoom(roomCode) {
|
|
2023
2036
|
const client = this.sfuClient ?? new SFUClient({
|
|
2024
2037
|
apiBase: this.apiBase,
|
|
@@ -2855,6 +2868,7 @@ var MeetingProvider = ({
|
|
|
2855
2868
|
...config,
|
|
2856
2869
|
...joinConfig
|
|
2857
2870
|
}),
|
|
2871
|
+
getJoinState: (roomCode) => sdk.getJoinState(roomCode),
|
|
2858
2872
|
leave: () => sdk.disconnect(),
|
|
2859
2873
|
createRoom: sdk.createRoom.bind(sdk),
|
|
2860
2874
|
getRoom: sdk.getRoom.bind(sdk),
|