treesummaryrefslogcommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick2026-10-16 19:59:12 +0200
committerPatrick2026-10-16 19:59:12 +0200
commitf0db2f5466b4f11cbea62c96d3dabb19fe8c03db (patch)
tree585aa71af3cf62c761cff53362f02895946a2892 /src
parent10187464cd994a3501f029a4c890a24f3dbe8774 (diff)
downloadzhttpws-f0db2f5466b4f11cbea62c96d3dabb19fe8c03db.tar.gz
zhttpws-f0db2f5466b4f11cbea62c96d3dabb19fe8c03db.zip
websocket /ws -> /ws/HEADmain
Diffstat (limited to 'src')
-rw-r--r--src/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index b6b2e13..b0560ac 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -76,7 +76,7 @@ fn handle_request(alloc: std.mem.Allocator, io: Io, stream: Io.net.Stream) void
\\ </style></head><body>
\\ <script>
\\ function tryConnect() {
- \\ const socket = new WebSocket(`wss://${window.location.host}/ws`);
+ \\ const socket = new WebSocket(`wss://${window.location.host}/ws/`);
\\ socket.addEventListener("open", (event) => {
\\ tv.value += "Connected!\n";
\\ });