Update index.js
Browse files
index.js
CHANGED
@@ -9,7 +9,8 @@ const io = new Server(httpServer, { /* options */ });
|
|
9 |
|
10 |
io.on("connection", (socket) => {
|
11 |
console.log("hello sockets")
|
12 |
-
|
|
|
13 |
});
|
14 |
|
15 |
httpServer.listen(7860);
|
|
|
9 |
|
10 |
io.on("connection", (socket) => {
|
11 |
console.log("hello sockets")
|
12 |
+
let data = [process.env.URI_ENDPOINT, process.env.HF_TKN]
|
13 |
+
socket.emit("hello", (data));
|
14 |
});
|
15 |
|
16 |
httpServer.listen(7860);
|