# inMeetingServiceListener throwing an error

**URL:** <https://devforum.zoom.us/t/inmeetingservicelistener-throwing-an-error/99058>\
**Category:** Web\
**Created:** [November 27, 2023, 11:15am UTC](https://devforum.zoom.us/t/inmeetingservicelistener-throwing-an-error/99058 "2023-11-27T11:15:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmalik](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@bmalik](https://devforum.zoom.us/u/bmalik)\
**Post date:** [November 27, 2023, 11:15am UTC](https://devforum.zoom.us/t/inmeetingservicelistener-throwing-an-error/99058/1 "2023-11-27T11:15:43Z")

</div>

I am using Zoom web sdk version 2.7.1.

The code is:-

$.ajax({  
type: “GET”,  
url: appGetSecureURL(‘/api/web/fetchzoomzaktoken/’),  
success: function(a){  
debugger;  
console.log(a);  
var data=$.parseJSON(a)  
var zaktoken=data.zaktoken;  
const client = ZoomMtgEmbedded.createClient();  
let meetingSDKElement = document.getElementById(‘root’);  
[//client.init](https://client.init)({ zoomAppRoot: meetingSDKElement, language: ‘en-US’ });

```
                client.init({
                    zoomAppRoot: meetingSDKElement,
                    language: 'en-US',
                    customize: {
                      video: {
                        isResizable: true,
                        viewSizes: {
                          default: {
                            width: 1500,
                            height: 800
                          }                             
                       
                                            
                        }
                      }
                    }
                  })
                

                client.join({
                    sdkKey: 'sdkkey',
                    signature: jwttoken,
                    meetingNumber: '88539350532',
                    password: '697236',
                    userName: 'Dpsdoctor',
                    zak:zaktoken
                    
                })

                
                $("#root").removeAttr("style");

                client.inMeetingServiceListener('onUserJoin', function (data) {
                    debugger;
                    console.log(data);
                  });

                  client.inMeetingServiceListener('onMeetingStatus', function (data) {
                    debugger;
                    // {status: 1(connecting), 2(connected), 3(disconnected), 4(reconnecting)}
                    console.log(data);
                  });
                
                //console.log(jwttoken);
                
               
            }
        });

```

I am able to start the meeting as a host . But the issue is that in the console I can see an error :- client.inMeetingServiceListener is not a function

Though If I execute client.getAttendeesList({}) , I can see the attendees list . Let me know how to resolve this issue.

---

<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:** [December 27, 2023, 9:16pm UTC](https://devforum.zoom.us/t/inmeetingservicelistener-throwing-an-error/99058/2 "2023-12-27T21:16:03Z")

</div>

Closed on December 27, 2023, 9:16pm UTC

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