4.2.5 命名空间到房间 namespace_to_room
const io = require('socket.io')();
const adminNamespace=io.of('/admin');
adminNamespace.to('level1').emit('an event',{some:"data"});Last updated
Was this helpful?
const io = require('socket.io')();
const adminNamespace=io.of('/admin');
adminNamespace.to('level1').emit('an event',{some:"data"});Last updated
Was this helpful?
Was this helpful?