mirror of https://github.com/vacp2p/rfc.git
adds timestamp to wakurelaymessage (#437)
This commit is contained in:
parent
047dd40402
commit
b6737cddd7
|
@ -107,6 +107,8 @@ The following structured types are defined for use on the Relay API:
|
|||
| ----: | :---: | :---: | ----------- |
|
||||
| `payload` | `String` | mandatory | The payload being relayed as a hex encoded data string |
|
||||
| `contentTopic` | `String` | optional | Message content topic for optional content-based filtering |
|
||||
| `timestamp` | `Number` | optional | The time at which the message is generated by its sender. This field holds the Unix epoch time in seconds as a 64-bits float value. The fractional part represents sub-seconds. |
|
||||
|
||||
|
||||
> **_NOTE:_** `WakuRelayMessage` maps directly to a [`WakuMessage`](#WakuMessage), except that the latter contains an explicit message `version`. For `WakuRelay` purposes, the versioning is handled by the API.
|
||||
|
||||
|
|
Loading…
Reference in New Issue