websocket_url
Type specification, version v1.0.0
Summary
websocket_url is a canonical absolute WebSocket URL.
Canonical form
A websocket_url value MUST satisfy the canonical form of absolute_url, except that:
- the scheme MUST be
wsorwss - the default port MUST be omitted:
:80forws:443forwss
Notes
websocket_url is a practical canonical form for Chronicle use.
Examples
Valid:
wss://relay.example.com/wss://relay.example.com/nostrws://relay.example.com:8080/
Invalid:
WSS://relay.example.com/wss://Relay.example.com/wss://user@relay.example.com/wss://relay.example.comwss://relay.example.com:443/https://relay.example.com/wss://relay.example.com/#generalws://localhost:8080/