# It seems like WebSocket connections are not working within the Zoom app, and Supabase real-time functionality is also not functioning properly

**URL:** <https://devforum.zoom.us/t/it-seems-like-websocket-connections-are-not-working-within-the-zoom-app-and-supabase-real-time-functionality-is-also-not-functioning-properly/102596>\
**Category:** Zoom Apps\
**Created:** [January 26, 2024, 7:43am UTC](https://devforum.zoom.us/t/it-seems-like-websocket-connections-are-not-working-within-the-zoom-app-and-supabase-real-time-functionality-is-also-not-functioning-properly/102596 "2024-01-26T07:43:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bae20051018](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bae20051018/32/58277_2.png) [@bae20051018](https://devforum.zoom.us/u/bae20051018)\
**Post date:** [January 26, 2024, 7:43am UTC](https://devforum.zoom.us/t/it-seems-like-websocket-connections-are-not-working-within-the-zoom-app-and-supabase-real-time-functionality-is-also-not-functioning-properly/102596/1 "2024-01-26T07:43:35Z")

</div>

When i open the developer tools in Zoom In App, Safari appears, but there are no WebSockets at all in the Network tab, and there are no requests

Also, I’m using the real-time feature supported by Supabase, but it’s not working.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/3/c33ceac502c51428d757a726abfc15b157db84db.png)

```auto
// user-script.js

(function(){if (typeof window.WebSocket.isInAllowHostList === 'function') {return; }
function whiteListedWebSocket(realWebSocket) {
  var realURL = URL;
  return class WebSocket extends realWebSocket {
  static isInAllowHostList(hostName) { 
  var allowed_domain_list = ["ff25-183-96-188-173.ngrok-free.app","appssdk.zoom.us","eventcat.live","supabase.co","eventcat.com"];
  var ret = false; for(var domain of allowed_domain_list) {
    if ('*' == domain[0]) {
      if (hostName.endsWith(domain.substr(1)) || domain.substr(2) == hostName) {
      ret = true;
          break;
      }
    }
    else {
      if (hostName == domain){
        ret = true;
        break;
      }
    }
  }
  return ret;
  };
  constructor(url,protocol) {
    var URLObj = new realURL(url);
    if ('wss:'!= URLObj.protocol) {
      throw 'Protocol is not valid';
    }
    var hostName = URLObj.hostname;
      if (!WebSocket.isInAllowHostList(hostName)) {
        throw 'URL is not valid';
      }
      super(url,protocol);
    }
  };
}
  window.WebSocket = whiteListedWebSocket(window.WebSocket);
})();

```

---

<div class="post-metadata">

**Author:** ![teeseal](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@teeseal](https://devforum.zoom.us/u/teeseal)\
**Post date:** [June 22, 2024, 5:00pm UTC](https://devforum.zoom.us/t/it-seems-like-websocket-connections-are-not-working-within-the-zoom-app-and-supabase-real-time-functionality-is-also-not-functioning-properly/102596/2 "2024-06-22T17:00:20Z")

</div>

I encountered the same issue trying to use Supabase realtime in my zoom app and it took me way too long to figure out because the error is not very descriptive. I kept getting “URL is not valid” and thought that the URL might be malformed, which was not the case.

The supabase websocket endpoint has the following structure: `wss://<PROJECT_ID>.supabase.co`. So for it to work you need to have `*.supabase.co` in your domain allow list, not just `supabase.co`. Or for more granular security - replace the asterisk with your project ID specifically.

One can edit their domain allow list in the app developer dashboard under “Features \> Surface”
