# postMessage api send payload to remote participant connected with Zoom Apps onMessage event?

**URL:** <https://devforum.zoom.us/t/postmessage-api-send-payload-to-remote-participant-connected-with-zoom-apps-onmessage-event/84915>\
**Category:** Zoom Apps\
**Created:** [March 18, 2023, 12:13pm UTC](https://devforum.zoom.us/t/postmessage-api-send-payload-to-remote-participant-connected-with-zoom-apps-onmessage-event/84915 "2023-03-18T12:13:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [March 18, 2023, 12:13pm UTC](https://devforum.zoom.us/t/postmessage-api-send-payload-to-remote-participant-connected-with-zoom-apps-onmessage-event/84915/1 "2023-03-18T12:13:23Z")

</div>

Hi,

`zoomSdk.postMessage(payload)` sends the payload to connected **Zoom JSSDK App** remote participants bonded `zoomSdk.onMessage((payload)=>console.log(payload));`

If not, how can **Zoom JSSDK** instance communicate with remote connected/installed app participants?

Thank you so much for your attention and participation.

---

<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:** [March 20, 2023, 10:01pm UTC](https://devforum.zoom.us/t/postmessage-api-send-payload-to-remote-participant-connected-with-zoom-apps-onmessage-event/84915/2 "2023-03-20T22:01:32Z")

</div>

Can you clarify your question? Are you looking for an alternative method to communicate between instances? Currently, using `postMessage` and `onMessage` are the only methods that we have.

---

<div class="post-metadata">

**Author:** ![freelancer.nak](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/freelancer.nak/32/40968_2.png) [@freelancer.nak](https://devforum.zoom.us/u/freelancer.nak)\
**Post date:** [March 21, 2023, 9:14am UTC](https://devforum.zoom.us/t/postmessage-api-send-payload-to-remote-participant-connected-with-zoom-apps-onmessage-event/84915/3 "2023-03-21T09:14:59Z")

</div>

@MaxM I am just asking that lets if

From Participant ‘A’ we use `zoomSdk.postMessage(payload)` & from Participant ‘B’ we have

`zoomSdk.onMessage((payload) => { console.log('-- can that payload will be received here? --> ',payload) });`

Is it possible 👆

Thanks

---

<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:** [March 28, 2023, 9:28pm UTC](https://devforum.zoom.us/t/postmessage-api-send-payload-to-remote-participant-connected-with-zoom-apps-onmessage-event/84915/4 "2023-03-28T21:28:29Z")

</div>

Thank you for clarifying! Those functions only pass messages between instances running on the same machine. If you wanted to communicate between participants I recommend configuring a socket server.

I hope that helps!

---

<div class="post-metadata">

**Author:** ![scottv](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/scottv/32/51117_2.png) [@scottv](https://devforum.zoom.us/u/scottv)\
**Post date:** [August 15, 2023, 3:32pm UTC](https://devforum.zoom.us/t/postmessage-api-send-payload-to-remote-participant-connected-with-zoom-apps-onmessage-event/84915/5 "2023-08-15T15:32:09Z")

</div>

What machine is that? A user’s computer running the Zoom client? Or a server in Zoom’s data center?

I’m looking for a conceptual / architectural introduction to the messaging described in the “App Instances Communication” section of the Zoom Apps SDK reference. For example, what is the “main client” referred to in these snippets?

```
"Allows the App to communicate with the instance of the app running on the main client."

"the instance of the app that is running in the meeting must communicate with the instance of the app running in the main client"

```

And what is meant by “the instance… running in the meeting”?

Finally, what is the “mirrored app” in:

```
"Send a message with the current state of the mirrored app"

```

I feel like there is an architecture implied but never really described in any of the guides… did I miss a document? A picture would be awesome.

Thank you
