Created dedicated queue broadcast namespace, to make authorized queue broadcasts as painless as possible.
This commit is contained in:
parent
e88ef29852
commit
5eb307bb9e
9 changed files with 131 additions and 9 deletions
|
|
@ -98,4 +98,8 @@ module.exports.authSocket = async function(socket){
|
|||
};
|
||||
|
||||
return userDB;
|
||||
}
|
||||
|
||||
module.exports.getChannelName = function(socket){
|
||||
return socket.handshake.headers.referer.split('/c/')[1].split('/')[0];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue