tweak: Update ws URL and channel name

This commit is contained in:
2026-07-30 10:18:43 +03:00
parent 29dcf1061c
commit 41afeb7bfc
+4 -4
View File
@@ -2,7 +2,7 @@ window.addEventListener("DOMContentLoaded", () => {
//Create progress bar //Create progress bar
const book_bar = new ProgressBar(); const book_bar = new ProgressBar();
//Pat Lilac //Pat Lilac
const websocket = new ReconnectingWebSocket("wss://lilac.thewisewolf.dev/campaigns/partnerplus2026/ws"); const websocket = new ReconnectingWebSocket("wss://lilac.thewisewolf.dev/tracker/timer/ws");
communicate(websocket, book_bar); communicate(websocket, book_bar);
}); });
@@ -47,7 +47,7 @@ class ProgressBar {
} }
} }
//TEST ANIMATION //TEST ANIMATION
simProgress() { simProgress() {
if (this.current_progress < this.max_progress) { if (this.current_progress < this.max_progress) {
this.setProgress(this.current_progress + 1); this.setProgress(this.current_progress + 1);
@@ -58,7 +58,7 @@ class ProgressBar {
setTimeout(this.simProgress.bind(this), 5500); setTimeout(this.simProgress.bind(this), 5500);
} }
} }
} }
class ReconnectingWebSocket { class ReconnectingWebSocket {
@@ -158,7 +158,7 @@ function communicate(websocket, book_bar) {
JSON.stringify( JSON.stringify(
{ {
type: "init", type: "init",
channel: "SubTimer", channel: "CampaignRewards",
community: params.get('community') community: params.get('community')
} }
) )