UIKitSettings
UIKitSettings is pre-defined structure containing credentials required to initialise CometChat SDK.
Structure of UIKitSettings
Name | Type | Description |
---|---|---|
appId | string | Unique ID for the app, available on CometChat dashboard |
region | string | Region for the app us or eu |
authKey | string | Auth key for the app, available on CometChat dashboard |
subscriptionType | string | Sets subscription type |
autoEstablishSocketConnection | bool | Configures web socket connections. When set to true, establishes connection automatically on app initialisation. |
roles | string[] | Subscribes user presence of those users having roles as mentioned |
adminHost | string | Sets admin URL and used instead of the default admin URL. This can be used in case of dedicated deployment of CometChat |
clientHost | string | Sets client URL and used instead of the default client URL. This can be used in case of dedicated deployment of CometChat |