const io = require('socket.io-client')
const socket = io("http://localhost:1900", {
transports: ["websocket"]
})
io.sockets.on('connection', function (socket) {
console.log('hello: ' + socket.id)
})
function main(){
useEffect(()=>{
const socket = io("http://localhost:1900", {
transports: ["websocket"]
})
},[])
}