# onConnect & onMessage in guest mode is not firing

**URL:** <https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540>\
**Category:** Zoom Apps\
**Created:** [January 16, 2023, 10:51pm UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540 "2023-01-16T22:51:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisewald](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chrisewald/32/42118_2.png) [@chrisewald](https://devforum.zoom.us/u/chrisewald)\
**Post date:** [January 16, 2023, 10:51pm UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540/1 "2023-01-16T22:51:12Z")

</div>

Hi,

I have a simple workflow setup to test the Zoom socket connect features. It’s basically console logging all of the events.

In my main logged in instance, I receive all messages, a success response from the `zoomSdk.connect()` call, and the firing of the `onConnect` event.

Then, in my guest mode Zoom instance, running the same code, I receive a success response from the `zoomSdk.connect()` call, but then receive nothing from the `onConnect` event.

Message passing between the host and guest mode Zoom app instances similarly do not work, as no event is fired for `onMessage`

I have all relevant APIs enabled and guest mode with the local testing turned on and working.

The ZoomApp SDK Documentation clearly indicates that these events are supported in guest mode.

Is this a bug? Can someone point out what may be the issue here?

---

<div class="post-metadata">

**Author:** ![chrisewald](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chrisewald/32/42118_2.png) [@chrisewald](https://devforum.zoom.us/u/chrisewald)\
**Post date:** [January 16, 2023, 11:20pm UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540/2 "2023-01-16T23:20:53Z")

</div>

Here is the response from `zoomSdk.config()` for the guest mode client:

```json
auth: {status: "unauthenticated", upgradable: false}
browserVersion: "applewebkit/17613.3.9.1.16"
clientVersion: "5.12.9.13190"
media: {video: null}
product: "desktop"
runningContext: "inCollaborate"
unsupportedApis: [] (0)
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko)"

```

---

<div class="post-metadata">

**Author:** ![pranav.katariya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pranav.katariya/32/42991_2.png) [@pranav.katariya](https://devforum.zoom.us/u/pranav.katariya)\
**Post date:** [January 18, 2023, 1:00am UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540/3 "2023-01-18T01:00:02Z")

</div>

Thanks for bringing this to our notice. One of the engineers on the team is working on reproducing this possible bug.

---

<div class="post-metadata">

**Author:** ![chrisewald](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chrisewald/32/42118_2.png) [@chrisewald](https://devforum.zoom.us/u/chrisewald)\
**Post date:** [January 18, 2023, 2:00am UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540/4 "2023-01-18T02:00:50Z")

</div>

Thank you @pranav.katariya. Please keep me informed of the results.

A reliable socket connection is very important for my application.

I was also able to reproduce the problem in an up-to-date windows Zoom App client running in guest mode.

---

<div class="post-metadata">

**Author:** ![pranav.katariya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pranav.katariya/32/42991_2.png) [@pranav.katariya](https://devforum.zoom.us/u/pranav.katariya)\
**Post date:** [January 18, 2023, 2:16am UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540/5 "2023-01-18T02:16:35Z")

</div>

cc. @MaxM, internal bug has been created.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 18, 2023, 2:31am UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540/6 "2023-01-18T02:31:42Z")

</div>

Can you share the ID of the bug submission here?

---

<div class="post-metadata">

**Author:** ![pranav.katariya](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/pranav.katariya/32/42991_2.png) [@pranav.katariya](https://devforum.zoom.us/u/pranav.katariya)\
**Post date:** [January 18, 2023, 4:27am UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540/9 "2023-01-18T04:27:28Z")

</div>

Have sent it to you on internal communication.

---

<div class="post-metadata">

**Author:** ![moldovanotiliu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/moldovanotiliu/32/42841_2.png) [@moldovanotiliu](https://devforum.zoom.us/u/moldovanotiliu)\
**Post date:** [November 13, 2023, 10:19am UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540/10 "2023-11-13T10:19:57Z")

</div>

Hi, there I am having the same issue with the guest mode not being connected. Chris managed to describe the exact issue that I am having.  
Currently I am running two instances of zoom on the same pc, but I’ve tried the same flow with 2 pc’s and I am having the same issue.  
Can someone point me out if I am missing something on my side?

---

<div class="post-metadata">

**Author:** ![zoomdeveloper](https://avatars.discourse-cdn.com/v4/letter/z/cdc98d/32.png) [@zoomdeveloper](https://devforum.zoom.us/u/zoomdeveloper)\
**Post date:** [December 5, 2023, 1:19pm UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540/11 "2023-12-05T13:19:05Z")

</div>

It’s not working for us in the same way. It just doesn’t fire an event 😞 .

---

<div class="post-metadata">

**Author:** ![Mikron](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mikron/32/18634_2.png) [@Mikron](https://devforum.zoom.us/u/Mikron)\
**Post date:** [November 21, 2024, 3:02pm UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540/12 "2024-11-21T15:02:02Z")

</div>

Hi Chris, can you please tell if this is the reason that I’m not getting any messages when using `this.zoomSdk.addEventListener("onMessage", this.onMessage);`, but am able to send them to the CameraMode (Layers API example)

Thanks

---

<div class="post-metadata">

**Author:** ![chrisewald](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chrisewald/32/42118_2.png) [@chrisewald](https://devforum.zoom.us/u/chrisewald)\
**Post date:** [November 21, 2024, 6:37pm UTC](https://devforum.zoom.us/t/onconnect-onmessage-in-guest-mode-is-not-firing/81540/13 "2024-11-21T18:37:16Z")

</div>

I can’t. I don’t work for zoom and stopped building for it a while ago.

Given that this issue is really old and still not resolved, I would recommend that you don’t even try to use zoom socket connections. This is the conclusion I came to and seemingly many others.

[Socket.io](http://Socket.io), ably, and pusher all provide reliable socket connections with minimal infrastructure overhead. Use one of these.
