How do you create multiple sessions using ZoomInstant.createClient() without having to leave a session?

I am working on integrating Zoom Video SDK into our web application. I follow the zoom documentation: https://marketplace.zoom.us/docs/sdk/video/web

On https://marketplace.zoom.us/docs/sdk/video/web/essential/create-join-session, it shows that I can create a session using ZoomInstant.createClient() and leave a session using client.leave()

Question:
How many session I can create using .createClient()?

Note:
I tried to create multiple sessions using .createClient() using the code snippet below

Code:
const client1 = ZoomInstant.createClient();
client1.init();

const client2 = ZoomInstant.createClient();
client2.init();

const client3 = ZoomInstant.createClient();
client3.init();

All of those client1, client2, and client3 have the same confId and meeting numbers.

So, what is the proper way to create multiple sessions without a client to leave a session?
Is that possible to do that way?

Thanks!

Hi @joecodingjourney_1,

Thanks for sharing the issue you are experiencing.

In Zoom Video SDK, we designed the client created by .createClient() as a singleton. Avoid misuse of the .createClient() method to create multiple instances, which will lead to high CPU and memory usage. In the future release, we will consider adding methods to create multiple sessions.

Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.