title: How to connect to Websocket server after deploying Firestore functions
body: <p>I have an API made with ExpressJS and Firestore, and a client-side made with React Native. I am using WebSockets to pass some real-time data. Everything works perfectly fine on my local server. Specifically, the WebSocket URL I am using to do a handshake is &quot;http://192.168.86.39:7000&quot;. However, this has to be changed when this API is deployed to Firestore functions. How will I know the new WebSocket URL to use? The API URL has changed now from &quot;http://192.168.86.39/&quot; to &quot;https://us-central1-APPNAME.cloudfunctions.net/app&quot;.</p>
  <p>Code on how I made the Websocket server:</p>
  <pre><code>const express = require('express');
  const app = express();
  const server = require('http').createServer(app);
  const io = require('socket.io')(server);
  server.listen(7000);
  </code></pre>