import express from 'express'
import http from 'http'
import { Server } from 'socket.io'
const expressApp = express()
const server = http.createServer(expressApp)
const io = new Server(server, {
cors: {
origin: allowedOrigins, // string[]
methods: ['GET', 'POST'],
allowedHeaders: [],
credentials: true
}
})
expressApp.get('/test', (req, res, next) => {
res.sendStatus(200)
})
server.listen(80)
io.on('connection', () => {})