-
public final class ChatClientConfigA config to setup the ChatClient behavior.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisAnonymousprivate final StringapiKeyprivate StringhttpUrlprivate StringcdnHttpUrlprivate StringwssUrlprivate final BooleanwarmUpprivate final ChatLoggerConfigloggerConfigprivate BooleandistinctApiCallsprivate final BooleandebugRequestsprivate final NotificationConfignotificationConfigprivate final BooleanfastEventParsing
-
Constructor Summary
Constructors Constructor Description ChatClientConfig(String apiKey, String httpUrl, String cdnHttpUrl, String wssUrl, Boolean warmUp, ChatLoggerConfig loggerConfig, Boolean distinctApiCalls, Boolean debugRequests, NotificationConfig notificationConfig, Boolean fastEventParsing)ChatClientConfig(String apiKey, String httpUrl, String cdnHttpUrl, String wssUrl, Boolean warmUp, ChatLoggerConfig loggerConfig, Boolean distinctApiCalls, Boolean debugRequests, NotificationConfig notificationConfig)ChatClientConfig(String apiKey, String httpUrl, String cdnHttpUrl, String wssUrl, Boolean warmUp, ChatLoggerConfig loggerConfig, Boolean debugRequests, NotificationConfig notificationConfig)
-
Method Summary
Modifier and Type Method Description final BooleangetIsAnonymous()final UnitsetIsAnonymous(Boolean isAnonymous)final StringgetApiKey()final StringgetHttpUrl()final UnitsetHttpUrl(String httpUrl)final StringgetCdnHttpUrl()final UnitsetCdnHttpUrl(String cdnHttpUrl)final StringgetWssUrl()final UnitsetWssUrl(String wssUrl)final BooleangetWarmUp()final ChatLoggerConfiggetLoggerConfig()final BooleangetDistinctApiCalls()final UnitsetDistinctApiCalls(Boolean distinctApiCalls)final BooleangetDebugRequests()final NotificationConfiggetNotificationConfig()final BooleangetFastEventParsing()-
-
Constructor Detail
-
ChatClientConfig
ChatClientConfig(String apiKey, String httpUrl, String cdnHttpUrl, String wssUrl, Boolean warmUp, ChatLoggerConfig loggerConfig, Boolean distinctApiCalls, Boolean debugRequests, NotificationConfig notificationConfig, Boolean fastEventParsing)
- Parameters:
apiKey- The API key of your Stream Chat app obtained from the Stream Dashboard.httpUrl- The base URL to be used by the client.cdnHttpUrl- The base CDN URL to be used by the client.wssUrl- The base WebSocket URL to be used by the client.warmUp- Controls the connection warm-up behavior.loggerConfig- A logging config to be used by the client.distinctApiCalls- Controls whether DistinctChatApi is enabled or not.debugRequests- Controls whether requests can be recorded or not.notificationConfig- A notification config to be used by the client.fastEventParsing- Enables the fast event-parsing path for incoming WebSocket events.
-
ChatClientConfig
ChatClientConfig(String apiKey, String httpUrl, String cdnHttpUrl, String wssUrl, Boolean warmUp, ChatLoggerConfig loggerConfig, Boolean distinctApiCalls, Boolean debugRequests, NotificationConfig notificationConfig)
- Parameters:
apiKey- The API key of your Stream Chat app obtained from the Stream Dashboard.httpUrl- The base URL to be used by the client.cdnHttpUrl- The base CDN URL to be used by the client.wssUrl- The base WebSocket URL to be used by the client.warmUp- Controls the connection warm-up behavior.loggerConfig- A logging config to be used by the client.distinctApiCalls- Controls whether DistinctChatApi is enabled or not.debugRequests- Controls whether requests can be recorded or not.notificationConfig- A notification config to be used by the client.
-
ChatClientConfig
ChatClientConfig(String apiKey, String httpUrl, String cdnHttpUrl, String wssUrl, Boolean warmUp, ChatLoggerConfig loggerConfig, Boolean debugRequests, NotificationConfig notificationConfig)
- Parameters:
apiKey- The API key of your Stream Chat app obtained from the Stream Dashboard.httpUrl- The base URL to be used by the client.cdnHttpUrl- The base CDN URL to be used by the client.wssUrl- The base WebSocket URL to be used by the client.warmUp- Controls the connection warm-up behavior.loggerConfig- A logging config to be used by the client.debugRequests- Controls whether requests can be recorded or not.notificationConfig- A notification config to be used by the client.
-
-
Method Detail
-
getIsAnonymous
final Boolean getIsAnonymous()
-
setIsAnonymous
final Unit setIsAnonymous(Boolean isAnonymous)
-
getHttpUrl
final String getHttpUrl()
-
setHttpUrl
final Unit setHttpUrl(String httpUrl)
- Parameters:
httpUrl- The base URL to be used by the client.
-
getCdnHttpUrl
final String getCdnHttpUrl()
-
setCdnHttpUrl
final Unit setCdnHttpUrl(String cdnHttpUrl)
- Parameters:
cdnHttpUrl- The base CDN URL to be used by the client.
-
setWssUrl
final Unit setWssUrl(String wssUrl)
- Parameters:
wssUrl- The base WebSocket URL to be used by the client.
-
getLoggerConfig
final ChatLoggerConfig getLoggerConfig()
-
getDistinctApiCalls
final Boolean getDistinctApiCalls()
-
setDistinctApiCalls
final Unit setDistinctApiCalls(Boolean distinctApiCalls)
- Parameters:
distinctApiCalls- Controls whether DistinctChatApi is enabled or not.
-
getDebugRequests
final Boolean getDebugRequests()
-
getNotificationConfig
final NotificationConfig getNotificationConfig()
-
getFastEventParsing
final Boolean getFastEventParsing()
-
-
-
-