git clone
cd demo_custom_streamserver
npm i
cd ws_server
npm i
const SERVICE_CONF = {
name : "test",
out_sr : {
wkid : 102100,
latestWkid : 3857
},
port : process.env["NGROK"] ? 9000 : 9000,
host : process.env["NGROK"] || "localhost",
protocol : process.env["NGROK"] ? "https" : "http",
wsUrl : "ws://localhost:8001"
};
ngrok http 9000
Copy the ngrok dynamic domain (It will be where the server will be exposed to the internet)
cd ws_server
node track_timeslot.js 8001
In this example, 8001 is the port you've already configure in SERVICE_CONF
NGROK=fa4a3c52.ngrok.io node index.js "4.13"
Replace fa4a3c52.ngrok.io with your ngrok dynamic domain