For AI agents: this page in Markdown: https://www.pubnub.com/docs/sdks/python/faq.md. Documentation index: https://www.pubnub.com/llms-full.txt.

FAQ for Python SDK

Why are there two subscribe methods?​

The Python SDK has an entity-based flow and keeps a legacy subscribe() for backward compatibility.

Use the entity-based flow described in Subscribe. It creates a Subscription or a SubscriptionSet and uses a unified listener. It can resume from a timetoken with parameters on subscription.subscribe(...).

The legacy builder pubnub.subscribe() is described in Subscribe (old). It remains for existing applications.

Was this page useful?

Last updated on