summaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-13 21:20:50 -0800
committerbndw <ben@bdw.to>2026-02-13 21:20:50 -0800
commit15f9c714a28a062a4ec3a916675dccba98749788 (patch)
treefc0210582724b04dfae1428fc0f6024756dc292d /internal
parent13a6cbfe1036db242583a6af5471b5a21fb223b9 (diff)
fix: remove duplicate protocol prefix in WebSocket URL
The template was hardcoding 'ws://' prefix, but when using --public-url we were already passing 'wss://'. This caused the URL to display as 'ws://wss://domain/'. Fix by: - Removing 'ws://' prefix from template - Always including protocol in the variable (ws:// or wss://) - Also add http:// prefix for local development consistency
Diffstat (limited to 'internal')
-rw-r--r--internal/handler/websocket/index.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handler/websocket/index.go b/internal/handler/websocket/index.go
index 887b6ea..bbd6583 100644
--- a/internal/handler/websocket/index.go
+++ b/internal/handler/websocket/index.go
@@ -104,7 +104,7 @@ status: online
104<p>Browser-compatible HTTP interface. Standard JSON over HTTP/1.1 or HTTP/2. CORS enabled.</p> 104<p>Browser-compatible HTTP interface. Standard JSON over HTTP/1.1 or HTTP/2. CORS enabled.</p>
105 105
106<h3>WebSocket (Nostr Protocol)</h3> 106<h3>WebSocket (Nostr Protocol)</h3>
107<p><code>ws://{{.WsAddr}}/</code></p> 107<p><code>{{.WsAddr}}/</code></p>
108<p>Standard Nostr protocol implementation (NIP-01). Compatible with all Nostr clients: Damus, Amethyst, Snort, Iris, etc.</p> 108<p>Standard Nostr protocol implementation (NIP-01). Compatible with all Nostr clients: Damus, Amethyst, Snort, Iris, etc.</p>
109 109
110<hr> 110<hr>