From 15f9c714a28a062a4ec3a916675dccba98749788 Mon Sep 17 00:00:00 2001 From: bndw Date: Fri, 13 Feb 2026 21:20:50 -0800 Subject: 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 --- internal/handler/websocket/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal') 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

Browser-compatible HTTP interface. Standard JSON over HTTP/1.1 or HTTP/2. CORS enabled.

WebSocket (Nostr Protocol)

-

ws://{{.WsAddr}}/

+

{{.WsAddr}}/

Standard Nostr protocol implementation (NIP-01). Compatible with all Nostr clients: Damus, Amethyst, Snort, Iris, etc.


-- cgit v1.2.3