Initial commit
Some checks failed
Publish Docker image / Push Docker image to Docker Hub (push) Failing after 4m2s
Some checks failed
Publish Docker image / Push Docker image to Docker Hub (push) Failing after 4m2s
This commit is contained in:
15
server/index.js
Normal file
15
server/index.js
Normal file
@ -0,0 +1,15 @@
|
||||
const express = require("express");
|
||||
const { Server } = require("socket.io");
|
||||
const http = require("http");
|
||||
const app = express();
|
||||
|
||||
app.disable("x-powered-by");
|
||||
|
||||
const server = http.createServer(app);
|
||||
const io = new Server(server, {cors: {origin: "*"}});
|
||||
|
||||
io.on("connection", require("./handler/connection"));
|
||||
|
||||
server.listen(5287, () => {
|
||||
console.log("Server running on port 5287");
|
||||
});
|
Reference in New Issue
Block a user