4.3.24 flag_binary
const io=require('socket.io')();
io.on('connection',socket=>{
socket.binary(false).emit('an event',{some:"data"}) // 要发送的数据没有二进制数据
})Last updated
Was this helpful?
const io=require('socket.io')();
io.on('connection',socket=>{
socket.binary(false).emit('an event',{some:"data"}) // 要发送的数据没有二进制数据
})Last updated
Was this helpful?
Was this helpful?