Refactored to flow Hub Packaging directory structures

This commit is contained in:
2025-05-27 18:24:39 -05:00
parent 93362b209b
commit 73294b19b4
24 changed files with 222 additions and 174 deletions

View File

@@ -0,0 +1,17 @@
const webdisBaseURL = "https://iva.mortons.site/webdis/";
return {
async publish(channel, message) {
const str = JSON.stringify(message);
const encodedStr = buffer.Buffer.from(str).toString("base64");
let escapedStr = encodedStr.replace(/\//g, "%2f");
escapedStr = escapedStr.replace(/\+/g, "%2B");
console.log(`webdis:PUBLISH/${channel}/${escapedStr}`);
axios
.post(webdisBaseURL, `PUBLISH/${channel}/${escapedStr}`)
.then(function (response) {
console.log(response.data);
});
},
};