You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: standards/application/messaging-api.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ focusing exclusively on settings explicitly required by the `Messaging API`.
66
66
67
67
```typescript
68
68
{
69
-
mode: "edge"|"service";
69
+
mode: "edge"|"relay";
70
70
clusterId: number;
71
71
shards: number[];
72
72
storeNodes?:string[];
@@ -86,11 +86,13 @@ This property defines behavior of the node and MUST be specified.
86
86
If `edge` selected the node MUST use [LIGHTPUSH](../standards/core/lightpush.md) for sending messages,
87
87
and [FILTER](https://github.com/vacp2p/rfc-index/blob/7b443c1aab627894e3f22f5adfbb93f4c4eac4f6/waku/standards/core/12/filter.md) for receiving messages.
88
88
89
-
If `service` selected the node MUST implement [RELAY](https://github.com/vacp2p/rfc-index/blob/0277fd0c4dbd907dfb2f0c28b6cde94a335e1fae/waku/standards/core/11/relay.md),
90
-
[STORE](../standards/core/store.md) as well as host endpoint for [LIGHTPUSH](../standards/core/lightpush.md) and [FILTER](https://github.com/vacp2p/rfc-index/blob/7b443c1aab627894e3f22f5adfbb93f4c4eac4f6/waku/standards/core/12/filter.md).
- Host endpoint for [LIGHTPUSH](../standards/core/lightpush.md) and [FILTER](https://github.com/vacp2p/rfc-index/blob/7b443c1aab627894e3f22f5adfbb93f4c4eac4f6/waku/standards/core/12/filter.md).
`edge` mode SHOULD be used if node functions in resource restricted environment,
93
-
where as `service` SHOULD be used if node has no hard restrictions.
95
+
where as `relay` SHOULD be used if node has no hard restrictions.
94
96
95
97
##### `clusterId`
96
98
This property MUST be provided.
@@ -149,7 +151,7 @@ Instead, the initial configuration MUST be supplied at node creation time accord
149
151
The `Send API` is responsible for broadcasting messages across the network using the configured protocol.
150
152
The node SHOULD select the appropriate protocol based on its configuration and the protocols that are mounted:
151
153
- If the initial configuration specifies mode: "edge", then [LIGHTPUSH](../standards/core/lightpush.md) MUST be used to send messages.
152
-
- If the initial configuration specifies mode: "service", then [RELAY](https://github.com/vacp2p/rfc-index/blob/0277fd0c4dbd907dfb2f0c28b6cde94a335e1fae/waku/standards/core/11/relay.md) MUST be used to send messages.
154
+
- If the initial configuration specifies mode: "relay", then [RELAY](https://github.com/vacp2p/rfc-index/blob/0277fd0c4dbd907dfb2f0c28b6cde94a335e1fae/waku/standards/core/11/relay.md) MUST be used to send messages.
153
155
154
156
The `Send API` is also responsible for ensuring message delivery and MUST attempt retries as described in the `Retry` section.
0 commit comments