aboutsummaryrefslogtreecommitdiff
path: root/src/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.ts')
-rw-r--r--src/main.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.ts b/src/main.ts
index c6ec627..f3a0461 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -487,7 +487,7 @@ function sleep(ms) {
async function ws_connect(t: number): Promise<WebSocket> {
await sleep(t * 1000);
- return new WebSocket('ws://localhost:8001')
+ return new WebSocket('wss://' + location.host + "/api/ws")
}
function ws_setup(t: number = 0) {
@@ -512,7 +512,7 @@ function ws_setup(t: number = 0) {
});
socket.addEventListener('open', (event) => {
- get_newest_messages();
+ // get_newest_messages();
});
})