*If the port is `443`, the `wss://` protocol will be used.
uuid := Random sequence of 8 hexadecimal characters. (This uuid makes it possible to identify a Duniter node in a unique way.)
host := domain name or ipv4 or ipv6 (it is not possible to declare both an ipv4 and an ipv6, for this it is necessary to use a domain name.)
host := Domain name or ipv4 or ipv6 (it is not possible to declare both an ipv4 and an ipv6, for this it is necessary to use a domain name.)
port := Mandatory. Must be an integer. (_By convention, port 20900 is used for currency g1-test and port 20901 for currency g1._)
path := Optional access path
...
...
@@ -45,16 +47,16 @@ This endpoint is resolved as follows: `wss://g1-monit.librelois.fr:443/ws2p`
Other valid endpoint : `WS2P a0a45ed2 88.174.120.187 20901`
This endpoint is resolved as follows: `ws://88.174.120.187:20901`
Any ws2p endpoint must match this regexp : `/^WS2P (?:[1-9][0-9]* )?([a-f0-9]{8}) ([a-z_][a-z0-9-_.]*|[0-9.]+|[0-9a-f:]+) ([0-9]+)(?: (.+))?$/`
Any WS2P endpoint must match this regexp : `/^WS2P (?:[1-9][0-9]* )?([a-f0-9]{8}) ([a-z_][a-z0-9-_.]*|[0-9.]+|[0-9a-f:]+) ([0-9]+)(?: (.+))?$/`
### Getting endpoints from other Duniter nodes
Initially, duniter is totally agnostic, it doesn't know any node.
Initially, Duniter is totally endpoint agnostic and don't know any node.
The first endpoints of other nodes are obtained during the synchronization step.
Currently, the synchronization process is fully managed by the BMA module,
but this synchronization process adds peers cards of the network nodes known by the node on which the user has chosen to synchronize to Duniter-ts's database.
but this synchronization process adds peer cards of the network nodes known by the node on which the user has chosen to synchronize to Duniter-ts's database.
When Duniter-ts starts up, the WS2P module accesses the peer cards stored in Duniter-ts's database following synchronization.
When duniter-ts starts up, the WS2P module accesses the peer cards stored in duniter-ts's database following synchronization.