FAQ for Python SDK

Why are there two subscribe methods?

The Python SDK supports a modern, entity-based flow and retains a legacy subscribe() for backward compatibility.

Use the modern flow documented in Subscribe. It creates a Subscription or a SubscriptionSet, uses a unified listener, and can resume from a timetoken using parameters on subscription.subscribe(...). The legacy builder pubnub.subscribe() is documented in Subscribe (old) and remains for existing applications.

Last updated on