Allow configuring codecs for additional content types
Set the maximum content size in bytes that is allowed by the Client. Currently only checked when decompressing compressed content.
Provide an array of KeystoreProviders. The client will attempt to use each one in sequence until one successfully returns a Keystore instance
Enable the Keystore to persist conversations in the provided storage interface
Provide a XMTP PrivateKeyBundle encoded as a Uint8Array.
A bundle can be retried using Client.getKeys(...)
Network startup options
apiUrl can be used to override the env
flag and connect to a
specific endpoint
identifier that's included with API requests.
For example, you can use the following format:
appVersion: APP_NAME + '/' + APP_VERSION
.
Setting this value provides telemetry that shows which apps are
using the XMTP client SDK. This information can help XMTP developers
provide app support, especially around communicating important
SDK updates, including deprecations and required upgrades.
Specify which XMTP environment to connect to. (default: dev
)
Skip publishing the user's contact bundle as part of Client startup.
This flag should be used with caution, as we rely on contact publishing to let other users know your public key and periodically run migrations on this data with new SDK versions.
Your application should have this flag set to false
at least some of the
time.
The most common use-case for setting this to true
is cases where the Client
instance is very short-lived. For example, spinning up a Client to decrypt
a push notification.
Generated using TypeDoc
Aggregate type for client options. Optional properties are used when the default value is calculated on invocation, and are computed as needed by each function. All other defaults are specified in defaultOptions.