Skip to main content

UIKitSettings

UIKitSettings is pre-defined structure containing credentials required to initialise CometChat SDK.

Structure of UIKitSettings

NameTypeDescription
appIdstringUnique ID for the app, available on CometChat dashboard
regionstringRegion for the app us or eu
authKeystringAuth key for the app, available on CometChat dashboard
subscriptionTypestringSets subscription type
autoEstablishSocketConnectionboolConfigures web socket connections. When set to true, establishes connection automatically on app initialisation.
rolesstring[]Subscribes user presence of those users having roles as mentioned
adminHoststringSets admin URL and used instead of the default admin URL. This can be used in case of dedicated deployment of CometChat
clientHoststringSets client URL and used instead of the default client URL. This can be used in case of dedicated deployment of CometChat