# m.AK.connectSocket is not a function error in zoom client view

**URL:** <https://devforum.zoom.us/t/m-ak-connectsocket-is-not-a-function-error-in-zoom-client-view/100540>\
**Category:** Web\
**Tags:** api\
**Created:** [December 21, 2023, 7:29am UTC](https://devforum.zoom.us/t/m-ak-connectsocket-is-not-a-function-error-in-zoom-client-view/100540 "2023-12-21T07:29:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prathmesh\_patil](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/prathmesh_patil/32/54805_2.png) [@prathmesh\_patil](https://devforum.zoom.us/u/prathmesh_patil)\
**Post date:** [December 21, 2023, 7:29am UTC](https://devforum.zoom.us/t/m-ak-connectsocket-is-not-a-function-error-in-zoom-client-view/100540/1 "2023-12-21T07:29:52Z")

</div>

Hi all, I am trying to implement a video calling functionality in my website. I want users to schedule and share zoom calls in my website.

I am using Zoom client view and trying to implement [this](https://github.com/zoom/meetingsdk-react-sample/blob/master/src/App.js) code in my React.Js code.

Code -

```auto
import { ZoomMtg } from "@zoomus/websdk"

ZoomMtg.setZoomJSLib("https://source.zoom.us/2.18.2/lib", "/av")

ZoomMtg.preLoadWasm()
ZoomMtg.prepareWebSDK()
// loads language files, also passes any error messages to the ui
ZoomMtg.i18n.load("en-US")
ZoomMtg.i18n.reload("en-US")

function startMeeting(signature) {
    document.getElementById("zmmtg-root").style.display = "block"

    ZoomMtg.init({
      leaveUrl: leaveUrl,
      success: (success) => {
        console.log(success)

        ZoomMtg.join({
          signature: signature,
          sdkKey: sdkKey,
          meetingNumber: meetingNumber,
          passWord: passWord,
          userName: userName,
          userEmail: userEmail,
          tk: registrantToken,
          zak: zakToken,
          success: (success) => {
            console.log("success : ",success)
          },
          error: (error) => {
            console.log("error : ",error)
          },
        })
      },
      error: (error) => {
        console.log("error 2 : ",error)
      },
    })
  }

```

I am able to see the “join meet” screen as follows -

 ![Zoom meet preview](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/5/45f96c4978863c1ccf4ca0795a6517421f9c4f03.png)

but when I click on “Join” button, I get the following errors -

1. m.AK.connectSocket is not a function  

2. Invalid DOM property `playsinline`  

3. ‘React’ is not defined  

4. invalid `ARIA` attribute `ariaLabel`  

5. A cross-origin error was thrown.  

React version - 18.2.0  
@zoomus/websdk version - 2.18.2

Can somebody please help me with this issue?

Thanks,

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [December 21, 2023, 8:20am UTC](https://devforum.zoom.us/t/m-ak-connectsocket-is-not-a-function-error-in-zoom-client-view/100540/2 "2023-12-21T08:20:45Z")

</div>

@prathmesh_patil ,

If you are using client view, you will need to use react 16. React 17 and 18 is not supported at this point in time.

---

<div class="post-metadata">

**Author:** ![prathmesh\_patil](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/prathmesh_patil/32/54805_2.png) [@prathmesh\_patil](https://devforum.zoom.us/u/prathmesh_patil)\
**Post date:** [December 22, 2023, 12:24pm UTC](https://devforum.zoom.us/t/m-ak-connectsocket-is-not-a-function-error-in-zoom-client-view/100540/3 "2023-12-22T12:24:49Z")

</div>

Thanks @chunsiong.zoom for the quick reply. I implemented it through CDN instead of any package managers and it worked for me. Thanks again.

Although I can log the userId properly, I don’t understand why I encounter this error (given below) whenever I attempt to resize the zoom component view window

```auto
Uncaught (in promise)
reason: "userId is not correct"
type: "INVALID_PARAMETERS" 

```

---

<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:** [January 21, 2024, 10:25pm UTC](https://devforum.zoom.us/t/m-ak-connectsocket-is-not-a-function-error-in-zoom-client-view/100540/4 "2024-01-21T22:25:34Z")

</div>

Closed on January 21, 2024, 10:25pm UTC

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