Description
I’m attempting to build a waiting room using subsessions as described in the developer blog entry “Building a telehealth waiting room with Zoom Video SDK”. If I remove all lines of code up to the .joinSubsession
in the snippet below, the client successfully connects to the main session. As soon as I call .joinSubsession
, the app is thrown into a connection loop that never completes. The await .joinSubsession
promise never fulfills or rejects , and the logs indicated below begin appearing forever.
Browser Console Error
WebSocket connection to ‘wss://zoomiad206247136128rwg.iad.zoom.us/wc/media/95281164371?type=s&cid=5F4E0267-5E17-E02A-6054-C58FAFBE24A9&mode=1’ failed: WebSocket is closed before the connection is established.
js_media.min.js:2 handleRendererTypeInProps() final rendererType=3 gpuBlacklist=undefined
39e4ae1a-81b3-431e-9b27-22f0f800d9a7:1 Sharing Version: 3727
625b5454-3119-4a29-b1e2-c5017be63671:1 WebSocket connection to ‘wss://zoomiad206247136128rwg.iad.zoom.us/wc/media/95281164371?type=s&cid=08480093-56D4-2D7A-5218-DAE32DBADEBD&mode=1’ failed: WebSocket is closed before the connection is established.
js_media.min.js:2 handleRendererTypeInProps() final rendererType=3 gpuBlacklist=undefined
da4d9623-cd77-4ca7-88a1-8ce36be7630b:1 Sharing Version: 3727
ec6ea77d-1930-4047-8f0a-1affd63d2779:1 WebSocket connection to ‘wss://zoomiad206247136128rwg.iad.zoom.us/wc/media/95281164371?type=s&cid=764B3A9D-21A0-D309-BC20-F8F670416593&mode=1’ failed: WebSocket is closed before the connection is established.
js_media.min.js:2 Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘remoteDescription’)
js_media.min.js:2 Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘remoteDescription’)
js_media.min.js:2 Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘remoteDescription’)
js_media.min.js:2 Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘remoteDescription’)
js_media.min.js:2 Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘setRemoteDescription’)
js_media.min.js:2 handleRendererTypeInProps() final rendererType=3 gpuBlacklist=undefined
5dfb116a-14f9-4e3a-88f2-72010ae6abef:1 Sharing Version: 3727
8d0be545-e06c-49d1-8731-4ea0c880ae38:1
WebSocket connection to ‘wss://zoomiad206247136128rwg.iad.zoom.us/wc/media/95281164371?type=s&cid=CD4E3EE9-D9D2-0F0A-0296-76F3A1CE2FA7&mode=1’ failed: WebSocket is closed before the connection is established.
…
Which Web Video SDK version?
2.2.5
Video SDK Code Snippets
await client.join("---", "---", "---");
const subsessionClient = client.getSubsessionClient();
const inProgressSubsession = (
await subsessionClient.createSubsessions(["in-progress"])
)[0];
if (inProgressSubsession) {
const ownUserId = client.getCurrentUserInfo().userId;
const subsessionList = subsessionClient.getSubsessionList();
const session = subsessionList.find(
(item) => item.subsessionId === inProgressSubsession.subsessionId
);
if (session) {
const { userList } = session;
if (!userList.find((user) => user.userId == ownUserId)) {
userList.push(client.getCurrentUserInfo());
}
}
await subsessionClient.openSubsessions(subsessionList, {
isBackToMainSessionEnabled: false,
});
await subsessionClient.joinSubsession(
inProgressSubsession.subsessionId
);
inProgressSubsessionRef.current = inProgressSubsession;
Device (please complete the following information):
- Device: Macbook Pro
- OS: 15.5
- Browser: Chrome
- Browser Version: 139.0.7258.67