# Disconnected after host clicks admit, reloads user id. Zoom WebSDK inside iframe

**URL:** <https://devforum.zoom.us/t/disconnected-after-host-clicks-admit-reloads-user-id-zoom-websdk-inside-iframe/27692>\
**Category:** Web\
**Created:** [August 20, 2020, 10:02am UTC](https://devforum.zoom.us/t/disconnected-after-host-clicks-admit-reloads-user-id-zoom-websdk-inside-iframe/27692 "2020-08-20T10:02:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maciej.sikora](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@maciej.sikora](https://devforum.zoom.us/u/maciej.sikora)\
**Post date:** [August 20, 2020, 10:02am UTC](https://devforum.zoom.us/t/disconnected-after-host-clicks-admit-reloads-user-id-zoom-websdk-inside-iframe/27692/1 "2020-08-20T10:02:29Z")

</div>

**Description**  
Using Zoom WebSDk inside Iframe. Everything works good without waiting room. But when waiting room is turned on, then in the moment when admin accept the user the user instead of joining the call disconnects and tries again to connect with different id.

**Error**  
After clicking admit by host I see such logs in the user side:  
video\_websocket\_on\_close  
sharing\_websocket\_on\_close  
sharing\_websocket\_on\_close  
video\_websocket\_on\_close  
STOP\_RENDER\_VIDE  
STOP\_RENDER\_VIDEO  
// next logs are initializing everything from beginning

Looks like it disconnects from the call and starts again. Host after that is seeing second time the same user in the list. User Id is changing every time I repeat the procedure.

**Which version?**  
1.7.10 . Bug existed in previous versions also.

**Checked in few browsers:**

- Chrome (newest)
- Safari (newest)

**Additional context**  
Password is not set  
Cannot reproduce behavior on localhost. There everything works fine.  
Works without iframe.

Looks like difference in the logs are that inside iframe there are additional two logs after websocket close:  
STOP\_RENDER\_VIDE  
STOP\_RENDER\_VIDEO

In version without iframe these two logs are not visible and everything works fine.

I think this issue is about the same thing:

> [@1.7.5 waiting room](https://devforum.zoom.us/t/1-7-5-waiting-room/13123):
>
> hello, with 1.7.5 and ‘enable waiting room’ for my personal meeting room id, the websdk client disconnects and then tries to reconnect when approved by the host (via native linux client). as i understand, waiting room should be supported by your websdk? is this disconnect + subsequent reconnect expected behavior? thx hari

This issue also partially describe the same problem:

> [@Zoom Web SDK issue with Lock meeting and waiting room](https://devforum.zoom.us/t/zoom-web-sdk-issue-with-lock-meeting-and-waiting-room/19660):
>
> Description I am getting issue with zoom web SDK while using waiting room and lock meeting. Both features are not working for web SDK. Lock Meeting -\> Web SDK -\> When Host lock the meeting, Participate still are able to join the meeting, not getting any restrictions. Android SDK -\> When host lock the meeting, user is coming out from zoom screen without any message. Waiting Room -\> If i enable waiting room, participate is coming in waiting room, but when host try to admit it, nothing happeni…

Exactly the same issue in point 3:

> [@Frequent disconnections, repetitive names in waiting room - in web sdk](https://devforum.zoom.us/t/frequent-disconnections-repetitive-names-in-waiting-room-in-web-sdk/25995):
>
> Description We are using v1.7.10 of the sdk to embed zoom in web. Couple of problems we faced during the ongoing session are below: When the session was going on, one of us was getting an error “The server encountered an internal error and was unable to process your request”, and there are two buttons; Retry and Exit. Clicking on either one will reload the page. When one of us joined from a tablet, the audio was coming from the receiver speaker and not the loudspeaker. So he had …

About above issue conclusion that it was not meant to be iframe. My application is managed by Elm language and current websdk is doing many implicit changes in DOM and is hardly configurable in terms of styling. Having that in iframe is the best to make it manageable. I dont understand what can be wrong in having that in iframe. Everything works ouside of this waiting room.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 24, 2020, 6:32pm UTC](https://devforum.zoom.us/t/disconnected-after-host-clicks-admit-reloads-user-id-zoom-websdk-inside-iframe/27692/2 "2020-08-24T18:32:04Z")

</div>

Hey @maciej.sikora,

Unfortunately the Web SDK was not designed to be used within an iFrame and could have some issues.

To confirm, this issue does not happen when not using an iFrame?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![maciej.sikora](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@maciej.sikora](https://devforum.zoom.us/u/maciej.sikora)\
**Post date:** [August 25, 2020, 7:43am UTC](https://devforum.zoom.us/t/disconnected-after-host-clicks-admit-reloads-user-id-zoom-websdk-inside-iframe/27692/3 "2020-08-25T07:43:50Z")

</div>

Hey @tommy ,  
yes tests show that the issue exists only when using iframe, when it is out of the iframe issue goes out. This is really unfortunate as current WebSDK is

- not prepared for embedding into existing page as it is aggressive in style and not configurable
- not supported in the iframe

In other words WebSDK is prepared only for fullscreen mode and any other usage is technically not supported. So saying that it can be integrated to some webpage is overstatement, it really can’t. Can you share any insight when you plan to make version which can be somehow embedded without aggressive changing the page. Also IMO iframe is natural choice for such embedding soft, and it is working well for youtube or vimeo. Why not consider such? Looks like natural choice. There is really not many other use cases for putting SDK into some app than having it in some width and height (not saying there are none, but I bet it is rare).

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 27, 2020, 7:34pm UTC](https://devforum.zoom.us/t/disconnected-after-host-clicks-admit-reloads-user-id-zoom-websdk-inside-iframe/27692/4 "2020-08-27T19:34:45Z")

</div>

Hey @maciej.sikora,

Please see my post here about best practices for where to put the Web SDK:

> [@WEB sdk add inline styles to html and body](https://devforum.zoom.us/t/web-sdk-add-inline-styles-to-html-and-body/23375/9):
>
> Hey @daniel2, @nvivot, @houssam.hammoud, @simonwong, Currently the best way to use the Web SDK without affecting the styling and functionality of your app is to navigate the user to a seperate path or sub domain so it does not interfere with your CSS. Then after the meeting you can navigate back to your main page with the [leaveUrl](https://zoom.github.io/sample-app-web/ZoomMtg.html#init) Thanks, Tommy

Appreciate your feedback, we will use it to work on future improvements. 🙂

Thanks,  
Tommy

---

<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:** [September 27, 2020, 5:34am UTC](https://devforum.zoom.us/t/disconnected-after-host-clicks-admit-reloads-user-id-zoom-websdk-inside-iframe/27692/5 "2020-09-27T05:34:48Z")

</div>

Closed on September 27, 2020, 5:34am UTC

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