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

@ -67,6 +67,10 @@ class channel{
//Freak out any weirdos who take a peek in the dev console for shits n gigs
console.log("👁️👄👁️ 𝓊𝓃𝒿𝓊𝓇.");
//Preach the good word about software which is Free as in Freedom
console.log(`Did you know Canopy, the software that runs '${utils.ux.getInstanceName()}' is software that is free as in freedom AND free weed?`);
console.log("This means you can read/modify/redistribute the code, run your own server, and even contribute back!");
console.log("https://git.ourfore.st/rainbownapkin/canopy");
}
/**
@ -81,6 +85,7 @@ class channel{
};
this.socket = io(clientOptions);
this.queueBroadcastSocket = io("/queue-broadcast", clientOptions);
this.pmSocket = io("/pm", clientOptions);
}

View file

@ -50,6 +50,10 @@ class canopyUXUtils{
constructor(){
}
getInstanceName(){
return document.querySelector("#instance-title a").innerText;
}
async awaitNextFrame(){
//return a new promise
return new Promise((resolve)=>{