Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions pubnub/pnconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ class PNConfiguration(object):
DEFAULT_CRYPTO_MODULE = LegacyCryptoModule
_locked = False

def __init__(self):
def __init__(self,
subscriber_key: str | None = None,
publish_key: str | None = None,
uuid: str | None = None):
# TODO: add validation
self._uuid = None
self._uuid = uuid
self.origin = "ps.pndsn.com"
self.ssl = True
self.non_subscribe_request_timeout = 10
self.subscribe_request_timeout = 310
self.connect_timeout = 10
self.subscribe_key = None
self.publish_key = None
self.subscribe_key = subscriber_key
self.publish_key = publish_key
self.secret_key = None
self.cipher_key = None
self._cipher_mode = AES.MODE_CBC
Expand Down