You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
maettleship/index.js

16 lines
311 B

const express = require("express");
const app = express();
const http = require("http").Server(app);
const io = require("socket.io")(http);
const port = 8081;
app.use(express.static("public"));
http.listen(port, () => {
console.log(`Listening on http://localhost:${port}`);
});
module.exports = {
io,
};