4.3.7 socket_use_fn
io.on('connection',(socket)=>{
socket.use((packet,next)=>{
if (packet.doge===true) return next()
next (new Error('Not a doge error'));
})
})Last updated
Was this helpful?
io.on('connection',(socket)=>{
socket.use((packet,next)=>{
if (packet.doge===true) return next()
next (new Error('Not a doge error'));
})
})Last updated
Was this helpful?
Was this helpful?