Answer the question
In order to leave comments, you need to log in
Why is data not being passed from the Socket.io middleware?
Hello, I have this code
const io = socketio.listen(server)
io.use(sharedsession(session, {
autoSave: true
}))
io.use(servises.cash.getSocket())
io.of('/chat')
.on('connection', (socket) => {
console.log(socket.user)
})
//servises.cash.getSocket()
exports.getSocket = () => {
return function (socket, next) {
socket.user = {
login: 'User'
}
next()
}
}
Answer the question
In order to leave comments, you need to log in
parent container - font-size: 0; well, in the buttons then rewrite your font-size
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question