# Can I use websocket in zoom apps?

**URL:** <https://devforum.zoom.us/t/can-i-use-websocket-in-zoom-apps/84848>\
**Category:** Zoom Apps\
**Tags:** websockets\
**Created:** [March 17, 2023, 12:28am UTC](https://devforum.zoom.us/t/can-i-use-websocket-in-zoom-apps/84848 "2023-03-17T00:28:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazutaka](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kazutaka/32/46222_2.png) [@kazutaka](https://devforum.zoom.us/u/kazutaka)\
**Post date:** [March 17, 2023, 12:28am UTC](https://devforum.zoom.us/t/can-i-use-websocket-in-zoom-apps/84848/1 "2023-03-17T00:28:22Z")

</div>

Can I use websocket in zoom apps?

I have tried using pusher to see if websocket communication is possible within the zoom apps sample app, but I get the following error.

 ![スクリーンショット 2023-03-17 9.23.50](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/3/9388e91fb9892a1a58577dc3e5d782361312cf1e.png)

I looked up how to resolve this error and found that it seemed to be caught by the Content Sequrity Policy, so I wrote the following meta tag and tried to resolve the error.

```auto
<meta http-equiv="Content-Security-Policy" content="connect-src 'self' sockjs-ap3.pusher.com ws-ap3.pusher.com">

```

The following items are also added to the Domain Allow List.

- sockjs-ap3.pusher
- [ws-ap3.pusher.com](http://ws-ap3.pusher.com)

If you know how I can use websocket with zoom apps, please let me know.

---

<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, 8:59pm UTC](https://devforum.zoom.us/t/can-i-use-websocket-in-zoom-apps/84848/2 "2023-03-20T20:59:00Z")

</div>

You can use websockets within a Zoom App but you will want to make sure the domain is whitelisted and the websocket URL is added to your Content Security Policy connect-src parameter.

And example of setting up the connect-src can be found in our Custom Layout sample app:

> <https://github.com/zoom/zoomapps-customlayout-js/blob/28aff71df50c5e55a2a72c5030a206d5276a8b18/app.js#L73>

Let me know if that helps.
