payloadLifespan/payloadLifetime and other name variants unified to Time To Live naming.
This commit is contained in:
@ -49,9 +49,9 @@ Additional tunables, with their sustainable default values:
|
||||
- `QUERY_RATE_PER_MINUTE: 100`
|
||||
- Sets maximum allowed client query rate per minute for all endpoints. Anonymous users share same limit pool.
|
||||
- If send rate is exceeded, client receives a `HTTP 429` with explanation.
|
||||
- `DEFAULT_MESSAGE_LIFETIME_IN_MINUTES: 1`
|
||||
- `DEFAULT_MESSAGE_TIME_TO_LIVE_IN_SECONDS: 60`
|
||||
- Message will wait for delivery for set amount of time. After the time passes, a call to `/receive` will not consider it for delivery anymore.
|
||||
- Override this in message content by setting _optional_ `lifespanInSeconds` value inside the request.
|
||||
- Override this in message content by setting _optional_ `timeToLiveInSeconds` value inside the request.
|
||||
- There will be no indication to the sender or to client that there was a missed message. Once it's gone, it's gone.
|
||||
- `HOUSEKEEPING_ENABLED: true`
|
||||
- Turns on housekeeping job that periodically removes stale, delivered and/or acknowledged messages. You can tune this further, see below. By default, it only removes messages that are 2 hours old, regardless of their delivery or acknowledgement state.
|
||||
@ -106,7 +106,7 @@ Request:
|
||||
"payloadType": "STATUS",
|
||||
"payload": "{\n \"system\": \"OK\",\n}",
|
||||
"toUserId": "46b882b7-4b96-4fa2-ba1b-4955a9500c36",
|
||||
"lifespanInSeconds": "3600"
|
||||
"timeToLiveInSeconds": "3600"
|
||||
}
|
||||
|
||||
Response:
|
||||
|
||||
Reference in New Issue
Block a user