diff options
| -rw-r--r-- | cmd/relay/main.go | 4 | ||||
| -rw-r--r-- | internal/handler/websocket/index.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd/relay/main.go b/cmd/relay/main.go index a7daa50..a928238 100644 --- a/cmd/relay/main.go +++ b/cmd/relay/main.go | |||
| @@ -63,8 +63,8 @@ func main() { | |||
| 63 | } else { | 63 | } else { |
| 64 | // Use local addresses for development | 64 | // Use local addresses for development |
| 65 | grpcDisplay = *grpcAddr | 65 | grpcDisplay = *grpcAddr |
| 66 | httpDisplay = *wsAddr | 66 | httpDisplay = "http://" + *wsAddr |
| 67 | wsDisplay = *wsAddr | 67 | wsDisplay = "ws://" + *wsAddr |
| 68 | } | 68 | } |
| 69 | wsHandler.SetIndexData(grpcDisplay, httpDisplay, wsDisplay) | 69 | wsHandler.SetIndexData(grpcDisplay, httpDisplay, wsDisplay) |
| 70 | mux.Handle("/", wsHandler) | 70 | mux.Handle("/", wsHandler) |
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> |
