Skip to main content

Push_settings

Push_Settings

This request allows both retrieving and setting the configuration of automatic pushes.

There are currently two settings that can be changed:

  • wait --- The amount of time in seconds to wait before restarting a push that stopped or failed, while the corresponding stream is active. If set to zero, a restart is never performed. Default: 0.

  • maxspeed --- The maximum amount of automatic pushes restarted per second. If set to zero, there is no limit. Default: 0.

The request looks like this:

{
"push_settings":{
"wait": 0, //Setting for the wait option. May be left out to not change it.
"maxspeed": 0 //Setting for the maxspeed option. May be left out to not change it.
//Note: sending an empty object is a forward-compatible way to request the current settings without changing them.
}
}

The response contains the current settings (after applying any changes made through the request):

{
"push_settings":{
"wait": 0, //Current setting for the wait option.
"maxspeed": 0 //Current setting for the maxspeed option.
}
}