Reconnection Policies for PubNub Python SDK
Reconnection Policies
Python SDK has three types of Reconnection Policies when there is a network or internet issue.
- (default)
PNReconnectionPolicy.NONE
- indicates thatNO
action will taken when there is a network or internet issue. PNReconnectionPolicy.LINEAR
- SDK will try to reconnect each 3 seconds.PNReconnectionPolicy.EXPONENTIAL
- SDK uses the Exponential Backoff algorithm to reconnect when there is a network or internet issue. SDK usesMINEXPONENTIALBACKOFF
= 1 second andMAXEXPONENTIALBACKOFF
= 32 seconds. See: https://en.wikipedia.org/wiki/Exponential_backoff for more details.