Sylvain Filoni
init
48e84aa
raw
history blame
425 Bytes
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")
socket.emit("hello", (process.env.HF_SECRET_VALUE));
});
httpServer.listen(7860);