// 얘가 html ㅍ페이지를 출력할라고 있는거
// const { Server } = require("socket.io");
// const io = new Server(server);
const fs = require('fs')
const express = require('express')
const app = express()
app.get('/', function (req, res) {
res.send(fs.readFileSync('code.html').toString())
})
// io.on('connection', (socket) => {
// console.log('a user connected');
// });
// io.on('connection', function (socket) {
// console.log('a user connected');
// });
// io.on('connection', (socket) => {
// console.log('a user connected');
// });
// server.listen(3000, () => {
// console.log('listening on *:3000');
// });
app.listen(2000)
document.querySelector