mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
Fixes to expires in jetstream docs
This commit is contained in:
parent
d3289e6413
commit
4194c35c0f
@ -185,12 +185,12 @@ This is often not desired, pull consumers support a mode where a JSON document i
|
||||
|
||||
```javascript
|
||||
{
|
||||
"expires": "2020-11-10T12:41:00.075933464Z",
|
||||
"expires": 7000000000,
|
||||
"batch": 10,
|
||||
}
|
||||
```
|
||||
|
||||
This requests 10 messages and asks the server to keep this request until the specific `expires` time, this is useful when you poll the server frequently and do not want the pull requests to accumulate on the server. Set the expire time to now + your poll frequency.
|
||||
This requests 10 messages and asks the server to keep this request for 7 seconds, this is useful when you poll the server frequently and do not want the pull requests to accumulate on the server. Set the expire time to now + your poll frequency.
|
||||
|
||||
```javascript
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user