# When using ZoomMtg.init() of websdk, u.a.destroy is not a function error appears

**URL:** <https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874>\
**Category:** Web\
**Created:** [June 10, 2020, 6:18am UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874 "2020-06-10T06:18:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![spirit.ling.pub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/spirit.ling.pub/32/9827_2.png) [@spirit.ling.pub](https://devforum.zoom.us/u/spirit.ling.pub)\
**Post date:** [June 10, 2020, 6:18am UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/1 "2020-06-10T06:18:33Z")

</div>

**Description**  
When using ZoomMtg.init() of websdk, u.a.destroy is not a function error appears

**Error**

```auto
Uncaught TypeError: u.a.destroy is not a function
    at h (zoom-meeting-1.7.8.min.js:2)
    at zoom-meeting-1.7.8.min.js:2

```

**Which version?**  
websdk: 1.7.8

**To Reproduce(If applicable)**  
Follow the official demo  
Add some restrictions, such as unable to open the video

**Screenshots**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/c/cfb6f5eea2ef4c0ea0b6249e2bc1676e5c0b9e0d.png)

**Origin Code**

```auto
ZoomMtg.generateSignature({
    meetingNumber: meetConfig.meetingNumber,
    apiKey: meetConfig.apiKey,
    apiSecret: meetConfig.apiSecret,
    role: meetConfig.role,
    success(res) {
        console.log('signature', res.result);
        ZoomMtg.init({
            leaveUrl: 'http://www.zoom.us',
            isSupportAV: false,
            success() {
                ZoomMtg.join({
                    meetingNumber: meetConfig.meetingNumber,
                    userName: meetConfig.userName,
                    signature: res.result,
                    apiKey: meetConfig.apiKey,
                    passWord: meetConfig.passWord,
                    success() {
                        console.log('join meeting success');
                    },
                    error(res) {
                        console.log(res);
                    }
                });
            },
            error(res) {
                console.log(res);
            }
        });
    }
});

```

---

<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:** [June 15, 2020, 8:28pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/2 "2020-06-15T20:28:16Z")

</div>

Hey @spirit.ling.pub,

Thanks for sharing this. Is the Web SDK itself working? Or is it crashing due to this error?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![spirit.ling.pub](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/spirit.ling.pub/32/9827_2.png) [@spirit.ling.pub](https://devforum.zoom.us/u/spirit.ling.pub)\
**Post date:** [June 16, 2020, 1:16am UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/3 "2020-06-16T01:16:37Z")

</div>

Other options are normal, only when `isSupportAV:false`, the error will appear

---

<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:** [June 18, 2020, 6:23am UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/4 "2020-06-18T06:23:41Z")

</div>

Thanks for letting us know!

This issue does not seem like a blocker since it does not break the Web SDK functionally, we will fix it in the future.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![daniel2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel2/32/8619_2.png) [@daniel2](https://devforum.zoom.us/u/daniel2)\
**Post date:** [July 3, 2020, 3:05pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/5 "2020-07-03T15:05:30Z")

</div>

Any updates on this, regarding to version 1.7.9? Will it be fixed in 1.8.0?

---

<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:** [July 7, 2020, 8:14pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/6 "2020-07-07T20:14:54Z")

</div>

Hey @daniel2,

Is the Web SDK itself working? Or is it crashing due to this error?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![daniel2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel2/32/8619_2.png) [@daniel2](https://devforum.zoom.us/u/daniel2)\
**Post date:** [July 8, 2020, 3:54pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/7 "2020-07-08T15:54:19Z")

</div>

It crashes when admitting the client connection in the waiting room. If you refresh the page and reconnect, within a minute, it connects like it should.

**The pinpointed issue** is when the Web SDK Client gets Admitted into the meeting, whilst in the Waiting Room, when having the setting: `isSupportAV: false`.

**Images**  
When joining and having been admitted from Waiting Room:

 ![Screenshot 2020-07-08 at 17.16.12](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/a708efbe8d2af975e8070107f387357998a78e9d.png)

When refreshing page and rejoining meeting:

 ![Screenshot 2020-07-08 at 17.12.11](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/01253f2f698406e1975630d242976e4ab2c11379.png)

When leaving meeting, in this context:

 ![Screenshot 2020-07-08 at 17.15.13](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/f/f2ad78c601e081dff6ecff752483986d77b8e828.png)

---

<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:** [July 13, 2020, 8:09pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/8 "2020-07-13T20:09:17Z")

</div>

Hey @daniel2,

Thanks for the info. Our Web SDK engineers are looking into this. I will provide you with updates. (CS-2043)

-Tommy

---

<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:** [July 27, 2020, 12:17am UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/9 "2020-07-27T00:17:40Z")

</div>

Hey @daniel2,

Are you still having this issue? If so, please share your account # so we can reproduce the issue.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![daniel2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel2/32/8619_2.png) [@daniel2](https://devforum.zoom.us/u/daniel2)\
**Post date:** [July 27, 2020, 8:44am UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/10 "2020-07-27T08:44:13Z")

</div>

Yes, this still happens in 1.7.10.

---

<div class="post-metadata">

**Author:** ![daniel2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel2/32/8619_2.png) [@daniel2](https://devforum.zoom.us/u/daniel2)\
**Post date:** [July 27, 2020, 8:44am UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/11 "2020-07-27T08:44:58Z")

</div>

How do I send the account number, in a DM?

---

<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:** [July 29, 2020, 7:48pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/12 "2020-07-29T19:48:43Z")

</div>

Hey @daniel2,

Sure, I have just DM’d you.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![daniel2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel2/32/8619_2.png) [@daniel2](https://devforum.zoom.us/u/daniel2)\
**Post date:** [September 26, 2020, 6:18pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/13 "2020-09-26T18:18:05Z")

</div>

This is still an issue in version 1.8.1.  
But this time the error occurs in `N.sendSocket`.

```auto
N.sendSocket is not a function. (In 'N.sendSocket(m.END_MEDIA, {})', 'N.sendSocket' is undefined)

```

 ![Screenshot 2020-09-26 at 20.11.52](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/ba5e074f6e5a6c2ab7bdc5cacdaa05acb675d375.png)

---

<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:** [September 29, 2020, 5:24pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/14 "2020-09-29T17:24:56Z")

</div>

Hey @daniel2,

Can you please provide steps to reproduce the issue? I am not able to reproduce this in my own implementation.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![daniel2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel2/32/8619_2.png) [@daniel2](https://devforum.zoom.us/u/daniel2)\
**Post date:** [October 1, 2020, 9:52am UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/15 "2020-10-01T09:52:37Z")

</div>

The key factor is having disabled audio video receiving, via the `isSupportAV: false` setting.

---

<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:** [October 2, 2020, 9:35pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/16 "2020-10-02T21:35:40Z")

</div>

Hey @daniel2,

We are continuing to look into this issue. I will get back to you once we find the root cause. (CS-2373)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![sumit.cha20](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@sumit.cha20](https://devforum.zoom.us/u/sumit.cha20)\
**Post date:** [November 17, 2020, 7:19am UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/17 "2020-11-17T07:19:09Z")

</div>

Do we get any fix for it? I am getting the same issue when isSupportAv is false and tried to let the user in from the 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:** [November 18, 2020, 9:59pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/18 "2020-11-18T21:59:04Z")

</div>

Hey @sumit.cha20,

That is a seperate issue, and we are currently working on a fix. 🙂 (CS-2577)

Thanks,  
Tommy

---

<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:** [November 20, 2020, 5:24pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/19 "2020-11-20T17:24:44Z")

</div>

Hey @sumit.cha20,

We will be fixing (CS-2577) in version 1.8.5.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![daniel2](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/daniel2/32/8619_2.png) [@daniel2](https://devforum.zoom.us/u/daniel2)\
**Post date:** [December 18, 2020, 2:04pm UTC](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874/20 "2020-12-18T14:04:53Z")

</div>

Thank you. I saw just now that it will be released on Dec 21st, in three days. Thanks a lot!

[Next page](https://devforum.zoom.us/t/when-using-zoommtg-init-of-websdk-u-a-destroy-is-not-a-function-error-appears/20874.md?page=2)
