For AI agents: this page in Markdown: https://www.pubnub.com/docs/sdks/javascript/api-reference/configuration-legacy.md. Documentation index: https://www.pubnub.com/llms-full.txt.
Configuration API: deprecated parameters and stop() method for JavaScript SDK
This page documents the deprecated uuid, logVerbosity, cipherKey, and useRandomIVs parameters of new PubNub(configuration) in the PubNub JavaScript SDK. It also documents the deprecated stop() method. The parameters still work, and each one has a current replacement in Configuration. New apps use the replacements.
Deprecated parameters
uuid#- The SDK reads
uuidwhenuserIdis not set. Setting both throws aPubNubError.- Replacement
userId
cipherKey#- If SDK configuration sets a
cipherKeywithout an explicit CryptoModule, the SDK defaults to legacy 128-bit encryption. The legacy encryption keeps working without configuration changes. To use 256-bit Advanced Encryption Standard cipher block chaining (AES-CBC) encryption, set the crypto module to the AES-CBC module. Pass the key tocryptoModuleinstead.- Replacement
cryptoModule
useRandomIVs#- Defaults to
true, which makes the initialization vector (IV) random for all requests. PassuseRandomIVstoPubNub.CryptoModule.legacyCryptoModule()instead.falseis insecure. Setfalseonly for backward compatibility with apps older than4.31.0, and never in new apps.- Replacement
cryptoModule
Deprecated stop() method
Deprecated
stop() is deprecated. Use destroy() instead.
stop() is an alias of destroy(). destroy() invalidates all subscriptions and subscription sets and unsubscribes from all channels and channel groups.