Answer the question
In order to leave comments, you need to log in
Why is there an endless reconnection of sockets on the client?
it does not refresh the page.
server:
io.sockets.on('connection', function(socket) {
console.log('Подключились' + ' id: ' + socket.id)
socket.on('disconnect', async function(data) {
console.log('Отключились')
})
})
import io from 'socket.io-client'
const socket = io()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question