diff options
| author | Patrick | 2026-10-16 19:59:12 +0200 |
|---|---|---|
| committer | Patrick | 2026-10-16 19:59:12 +0200 |
| commit | f0db2f5466b4f11cbea62c96d3dabb19fe8c03db (patch) | |
| tree | 585aa71af3cf62c761cff53362f02895946a2892 /src | |
| parent | 10187464cd994a3501f029a4c890a24f3dbe8774 (diff) | |
| download | zhttpws-f0db2f5466b4f11cbea62c96d3dabb19fe8c03db.tar.gz zhttpws-f0db2f5466b4f11cbea62c96d3dabb19fe8c03db.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.zig | 2 |
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"; \\ }); |
