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

**URL:** <https://devforum.zoom.us/t/how-do-you-create-multiple-sessions-using-zoominstant-createclient-without-having-to-leave-a-session/48323>\
**Category:** Web\
**Created:** [April 19, 2021, 3:49pm UTC](https://devforum.zoom.us/t/how-do-you-create-multiple-sessions-using-zoominstant-createclient-without-having-to-leave-a-session/48323 "2021-04-19T15:49:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joecodingjourney\_1](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@joecodingjourney\_1](https://devforum.zoom.us/u/joecodingjourney_1)\
**Post date:** [April 19, 2021, 3:49pm UTC](https://devforum.zoom.us/t/how-do-you-create-multiple-sessions-using-zoominstant-createclient-without-having-to-leave-a-session/48323/1 "2021-04-19T15:49:12Z")

</div>

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](https://marketplace.zoom.us/docs/sdk/video/web)

On [https://marketplace.zoom.us/docs/sdk/video/web/essential/create-join-session](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!

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [April 20, 2021, 3:10am UTC](https://devforum.zoom.us/t/how-do-you-create-multiple-sessions-using-zoominstant-createclient-without-having-to-leave-a-session/48323/2 "2021-04-20T03:10:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 20, 2021, 1:11pm UTC](https://devforum.zoom.us/t/how-do-you-create-multiple-sessions-using-zoominstant-createclient-without-having-to-leave-a-session/48323/3 "2021-05-20T13:11:17Z")

</div>

Closed on May 20, 2021, 1:11pm UTC

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