# Testing connection to websocket

**URL:** <https://devforum.zoom.us/t/testing-connection-to-websocket/96048>\
**Category:** Meeting SDK\
**Created:** [September 30, 2023, 12:04am UTC](https://devforum.zoom.us/t/testing-connection-to-websocket/96048 "2023-09-30T00:04:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvzanatta](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jvzanatta/32/37712_2.png) [@jvzanatta](https://devforum.zoom.us/u/jvzanatta)\
**Post date:** [September 30, 2023, 12:04am UTC](https://devforum.zoom.us/t/testing-connection-to-websocket/96048/1 "2023-09-30T00:04:27Z")

</div>

Hello!

Our app runs on wifi networks that might not be allowing connections to some of the Zoom servers. So our user might be unable to connect to a Zoom meeting depending on the network they are using.

We would like our users to know beforehand if they are unable to access the Zoom servers, so we are trying to build a connection tester to avoid frustration. We took the URL from the network tab after successfully joining a meeting and we were able to create a web socket to that URL using a small script, and that is what we need.

So my question is, is there a way for us to get a list of URLs for different regions so that we can test the app connection to Zoom?

Script:

```auto
const zoomWebSocketUrls = 'wss://zoomdv85128116rwg.dv.zoom.us'

const testZoomWebSocketConnection = (zoomWebSocketUrl: string) => {
  return new Promise((resolve) => {
    try {
      const ws = new WebSocket(zoomWebSocketUrl)

      ws.addEventListener('open', (event) => {
        console.log('WebSocket connection to Zoom servers successful:', event)
        ws.close()
        resolve(true)
      })

      ws.addEventListener('error', (event) => {
        console.error('WebSocket connection to Zoom servers failed:', event)
        resolve(false)
      })
    } catch (err) {
      resolve(false)
    }
  })

```

Motivation: A couple of months ago Zoom had a server outage, which caused our clients to attempt to connect to the China server somehow, and the firewall was blocking those connections. So we would like our script to attempt to connect to each server and warn us if any of the connections fail.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [October 4, 2023, 4:55pm UTC](https://devforum.zoom.us/t/testing-connection-to-websocket/96048/2 "2023-10-04T16:55:20Z")

</div>

Hi @jvzanatta  
Thanks for reaching out to us  
I am looking internally for this, I am not aware of a public list/documentation that I can share with you but allow me to ask around and will get back to you

In the meantime, here is a support article that I am hoping could be helpful

> **[Joining from specific countries/regions](https://support.zoom.us/hc/en-us/articles/360060086231-Joining-from-specific-countries-regions)**
>
> Account owners and admins can either allow participants from specific countries/regions to join a meeting or block entry for participants from specific countries/regions. If you are targeting a mee...

---

<div class="post-metadata">

**Author:** ![jvzanatta](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jvzanatta/32/37712_2.png) [@jvzanatta](https://devforum.zoom.us/u/jvzanatta)\
**Post date:** [October 9, 2023, 2:08pm UTC](https://devforum.zoom.us/t/testing-connection-to-websocket/96048/3 "2023-10-09T14:08:19Z")

</div>

Thanks Elisa. Looking forward to a solution that can allow us to verify access to the necessary WebSockets.

---

<div class="post-metadata">

**Author:** ![jvzanatta](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jvzanatta/32/37712_2.png) [@jvzanatta](https://devforum.zoom.us/u/jvzanatta)\
**Post date:** [November 2, 2023, 6:52pm UTC](https://devforum.zoom.us/t/testing-connection-to-websocket/96048/4 "2023-11-02T18:52:32Z")

</div>

Just wondering if there’s been any progress on my previous question. No rush, but an update would be greatly appreciated when you get a chance.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 7, 2023, 8:20pm UTC](https://devforum.zoom.us/t/testing-connection-to-websocket/96048/5 "2023-11-07T20:20:30Z")

</div>

Hi @jvzanatta  
Sorry about the late reply here.  
Let me re-engage with my team and will get back to you

---

<div class="post-metadata">

**Author:** ![jvzanatta](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jvzanatta/32/37712_2.png) [@jvzanatta](https://devforum.zoom.us/u/jvzanatta)\
**Post date:** [November 15, 2023, 8:08pm UTC](https://devforum.zoom.us/t/testing-connection-to-websocket/96048/6 "2023-11-15T20:08:09Z")

</div>

Thanks we really appreciate it! I am available to provide further explanation if necessary.

---

<div class="post-metadata">

**Author:** ![mohammad.rabbani](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mohammad.rabbani](https://devforum.zoom.us/u/mohammad.rabbani)\
**Post date:** [July 18, 2024, 11:57am UTC](https://devforum.zoom.us/t/testing-connection-to-websocket/96048/7 "2024-07-18T11:57:29Z")

</div>

Hi Elisa,

Any update on this Topic as we are facing similar kind of issue.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [July 18, 2024, 4:57pm UTC](https://devforum.zoom.us/t/testing-connection-to-websocket/96048/8 "2024-07-18T16:57:41Z")

</div>

Hi @mohammad.rabbani  
Thanks for reaching out to us  
I did not update this thread on time.  
I looked internally and we do not have a list available
