mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-12 13:34:48 +00:00
Fix typos
This commit is contained in:
parent
0d82b74854
commit
2fbe926df2
@ -275,9 +275,9 @@ Depending on your use case, you may not need to retrieve 30 days worth of messag
|
|||||||
The timestamp is set by the sender.
|
The timestamp is set by the sender.
|
||||||
By default, js-waku [sets the timestamp of outgoing message to the current time](https://github.com/status-im/js-waku/blob/a056227538f9409aa9134c7ef0df25f602dbea58/src/lib/waku_message/index.ts#L76).
|
By default, js-waku [sets the timestamp of outgoing message to the current time](https://github.com/status-im/js-waku/blob/a056227538f9409aa9134c7ef0df25f602dbea58/src/lib/waku_message/index.ts#L76).
|
||||||
|
|
||||||
You can filter messages that include a timestamp within given bound with the `timeFilter` option.
|
You can filter messages that include a timestamp within given bounds with the `timeFilter` option.
|
||||||
|
|
||||||
Let's only retrieve messages up to a week old:
|
Retrieve messages up to a week old:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const startTime = new Date();
|
const startTime = new Date();
|
||||||
|
@ -176,12 +176,12 @@ Depending on your use case, you may not need to retrieve 30 days worth of messag
|
|||||||
The timestamp is set by the sender.
|
The timestamp is set by the sender.
|
||||||
By default, js-waku [sets the timestamp of outgoing message to the current time](https://github.com/status-im/js-waku/blob/a056227538f9409aa9134c7ef0df25f602dbea58/src/lib/waku_message/index.ts#L76).
|
By default, js-waku [sets the timestamp of outgoing message to the current time](https://github.com/status-im/js-waku/blob/a056227538f9409aa9134c7ef0df25f602dbea58/src/lib/waku_message/index.ts#L76).
|
||||||
|
|
||||||
You can filter messages that include a timestamp within given bound with the `timeFilter` option.
|
You can filter messages that include a timestamp within given bounds with the `timeFilter` option.
|
||||||
|
|
||||||
Let's only retrieve messages up to a week old:
|
Retrieve messages up to a week old:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// `ContentTopic` and `callback` definitions
|
// [..] `ContentTopic` and `callback` definitions
|
||||||
|
|
||||||
const startTime = new Date();
|
const startTime = new Date();
|
||||||
// 7 days/week, 24 hours/day, 60min/hour, 60secs/min, 100ms/sec
|
// 7 days/week, 24 hours/day, 60min/hour, 60secs/min, 100ms/sec
|
||||||
|
Loading…
x
Reference in New Issue
Block a user