const express = require("express"); const { createServer } = require("http"); const { Server } = require("socket.io"); const app = express(); const httpServer = createServer(app); app.use(express.static('public')); const io = new Server(httpServer, { /* options */ }); io.on("connection", (socket) => { console.log("hello sockets") let data = [process.env.URI_ENDPOINT, process.env.HF_TKN] socket.emit("hello", (data)); }); httpServer.listen(7860);