Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Socket.io 客户端未获取socket.broadcast.to(roomId).emit(';message';,{})_Socket.io - Fatal编程技术网

Socket.io 客户端未获取socket.broadcast.to(roomId).emit(';message';,{})

Socket.io 客户端未获取socket.broadcast.to(roomId).emit(';message';,{}),socket.io,Socket.io,我只使用socket.broadcast.to(roomId.emit('message',{});在服务器端和socket.on('send1',函数(数据){})在客户端,但在客户端不起作用

我只使用socket.broadcast.to(roomId.emit('message',{});在服务器端和socket.on('send1',函数(数据){})在客户端,但在客户端不起作用