Update to socket.io 1.0
This commit is contained in:
parent
12804d1052
commit
6e0735f3fe
4 changed files with 21 additions and 42 deletions
|
|
@ -609,9 +609,7 @@ Channel.prototype.handleReadLog = function (user) {
|
|||
};
|
||||
|
||||
Channel.prototype._broadcast = function (msg, data, ns) {
|
||||
sio.ioServers.forEach(function (io) {
|
||||
io.sockets.in(ns).emit(msg, data);
|
||||
});
|
||||
sio.instance.in(ns).emit(msg, data);
|
||||
};
|
||||
|
||||
Channel.prototype.broadcastAll = function (msg, data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue