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 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.

Was this page useful?

Last updated on