Reconnection Policies for PubNub Python-Asyncio SDK

Reconnection Policies

Python SDK has three types of Reconnection Policies when there is a network or internet issue.

  1. PNReconnectionPolicy.NONE (default) - indicates that NO action will taken when there is a network or internet issue.

  2. PNReconnectionPolicy.LINEAR - SDK will try to reconnect each 3 seconds.

  3. PNReconnectionPolicy.EXPONENTIAL - SDK uses the Exponential Backoff algorithm to reconnect when there is a network or internet issue. SDK uses MINEXPONENTIALBACKOFF = 1 second and MAXEXPONENTIALBACKOFF = 32 seconds. See: https://en.wikipedia.org/wiki/Exponential_backoff for more details.

Last updated on