In contrast to the default variant of the SDK, the modular variant does not expose any functionality via static class properties or methods, since they cannot be tree-shaken by module bundlers. Instead, it exports free-standing functions which provide the same functionality. These are:
You are currently viewing the modular (tree-shakable) variant of the Ably JavaScript Client Library SDK. View the default variant here.
To get started with the Ably JavaScript Client Library SDK, follow the Quickstart Guide or view the introductions to the realtime and REST interfaces.
No
static
class functionalityIn contrast to the default variant of the SDK, the modular variant does not expose any functionality via
static
class properties or methods, since they cannot be tree-shaken by module bundlers. Instead, it exports free-standing functions which provide the same functionality. These are:static
versionCrypto.generateRandomKey()
generateRandomKey()
Crypto.getDefaultParams()
getDefaultCryptoParams()
MessageStatic.fromEncoded()
decodeMessage()
MessageStatic.fromEncoded()
decodeEncryptedMessage()
MessageStatic.fromEncodedArray()
decodeMessages()
MessageStatic.fromEncodedArray()
decodeEncryptedMessages()
PresenceMessageStatic.fromEncoded()
decodePresenceMessage()
PresenceMessageStatic.fromEncoded()
decodeEncryptedPresenceMessage()
PresenceMessageStatic.fromEncodedArray()
decodeEncryptedPresenceMessages()
PresenceMessageStatic.fromEncodedArray()
decodePresenceMessages()
PresenceMessageStatic.fromValues()
constructPresenceMessage()