Created dedicated queue broadcast namespace, to make authorized queue broadcasts as painless as possible.

This commit is contained in:
rainbow napkin 2025-10-22 04:34:05 -04:00
parent e88ef29852
commit 5eb307bb9e
9 changed files with 131 additions and 9 deletions

View file

@ -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];
}