-
I've been on Stackoverflow and have seen solutions to this question but I've tried them and they're outdated. I start server code and then I open another terminal and run client code but nothing happens. Also sorry in advance for formatting //Server const app = express() //Socket.io io.on("connection", (socket) => {
}) app.get('/', (req, res) => { const port = process.env.PORT || 3001 //Client const socket = io() socket.on('connect', function () { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answer is here: https://gist.github.com/luciopaiva/e6f60bd6e156714f0c5505c2be8e06d8 |
Beta Was this translation helpful? Give feedback.
Answer is here:
https://gist.github.com/luciopaiva/e6f60bd6e156714f0c5505c2be8e06d8