# Your connection has timed out, zoom webSdk

**URL:** <https://devforum.zoom.us/t/your-connection-has-timed-out-zoom-websdk/50505>\
**Category:** Web\
**Created:** [May 18, 2021, 3:24pm UTC](https://devforum.zoom.us/t/your-connection-has-timed-out-zoom-websdk/50505 "2021-05-18T15:24:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![anweshan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anweshan/32/26346_2.png) [@anweshan](https://devforum.zoom.us/u/anweshan)\
**Post date:** [May 18, 2021, 8:43pm UTC](https://devforum.zoom.us/t/your-connection-has-timed-out-zoom-websdk/50505/4 "2021-05-18T20:43:07Z")

</div>

Hey @gnovia  
**Preface of my solution**  
Hey what you are asking is very well possible. My interest in obscuring info came when I ran a event management page, where people needed to pay to join an event-meeting. If I was foolish enough to give out crucial details of the meeting, unpaid user(s) would join without knowledge (though we had the paid users as a registrant to the meeting).

**Enough taking, here is the solution:**

If you go to [https://marketplacefront.zoom.us/sdk/meeting/web/ZoomMtg.html](https://marketplacefront.zoom.us/sdk/meeting/web/ZoomMtg.html), you will get all required functions and docs required to work with the SDK.

As we use `ZoomMtg.init({params})` to initiate a meeting (documentation of which is found at [https://marketplacefront.zoom.us/sdk/meeting/web/ZoomMtg.html#init](https://marketplacefront.zoom.us/sdk/meeting/web/ZoomMtg.html#init)), here is a code snippet:  
**PLEASE NOTE:** this snippet here is optimized according to your needs.

```js
ZoomMtg.init({
   ... (All other options),
    disableReport: false, // Optional
    // Toggle the meeting header, includes meeting number and topic
   showMeetingHeader: true, // Optional,
   // Toggle the Invite Button Option
   disableInvite: false // Optional
    // Meeting Info to be show in that green box.
    meetingInfo: [ // optional
      'topic', // Topic of the meeting
      'host', // Host of the meeting
      'mn', // Meeting Number
      'pwd', // Passcode of the meeting
      'telPwd', // Numeric Passcode for Dial In Users
      'invite', // Invite Link
      'participant', // Participant ID
      'dc', // I am not completely sure.
      'enctype', // Type of Encryption Being Used
      'report' // Report Meeting
    ]

```

Now if you modify the following, and keep the `meetingInfo` array limited as:

```js
ZoomMtg.init({
  ...,
  /*
  * Doing this bit redacts most information.
  * I am not completely sure if this is an empty array, the green mark is invisible or not!!
  */
  meetingInfo: [
   'topic', // Will display only topic
   'host' // Will display only host
  ],
  disableReport: true, // Just for safety, we do this
  /*
   * Combining this with meetingInfo, but there is nothing unsafe about showing
   * the topic.
   * If you feel this is required, toggle a false.
   * This overrides "meetingInfo".
   */
  showMeetingHeader: true, 
  // This will stop participants from inviting others. So set it true.
  disableInvite: true
});

```

**Key Points**

- Make sure you keep this setting if the `role is not 1`
- Make sure there aren’t any more loopholes, like a `console.log(...)` etc which outputs these to the console.

If you have any other problem, feel free to ask.

A similar thread is here:

> [@Web SDK Hide meeting information](https://devforum.zoom.us/t/web-sdk-hide-meeting-information/22468):
>
> I managed to join Zoom meeting using Web SDK , however i want to use zoom for teaching purposes so that only authorized users shall join meeting through my web sdk only . My Issue is , when meeting load user can click on (i) and all meeting info is displayed , meeting number & password . question is : how to hide meeting information , or allow users to join meetings through my website only .

Thanks,  
Anweshan.

---

_[View the full topic](https://devforum.zoom.us/t/your-connection-has-timed-out-zoom-websdk/50505)._
