ChatKitty
ChatKitty JS Core SDK / Exports / ChatKitty
Class: ChatKitty
Table of contents
Constructors
Properties
Methods
- addChannelModerator
- blockUser
- checkChannelUnread
- checkUserIsChannelMember
- clearChannelHistory
- countMessageReplies
- countUnreadChannels
- countUnreadMessages
- createChannel
- createThread
- deleteChannel
- deleteMessage
- deleteUserBlockedRecord
- editMessage
- endSession
- hideChannel
- inviteUser
- joinChannel
- leaveChannel
- listChannelMembers
- listChannels
- listMessages
- listReactions
- listReadReceipts
- listThreadChannel
- listThreadMessage
- listThreads
- listUserBlockedRecords
- listUsers
- listUsersCount
- muteChannel
- onChannelHidden
- onChannelJoined
- onChannelLeft
- onChannelUnhidden
- onChannelUpdated
- onCurrentUserChanged
- onCurrentUserOffline
- onCurrentUserOnline
- onNotificationReceived
- onParticipantStartedTyping
- onParticipantStoppedTyping
- onUserPresenceChanged
- reactToMessage
- readChannel
- readMessage
- readThread
- removeReaction
- retrieveChannel
- retrieveChannelContext
- retrieveCurrentUser
- retrieveLastReadMessage
- retrieveMessageChannel
- retrieveMessageParent
- retrieveUser
- sendKeystrokes
- sendMessage
- startChatSession
- startSession
- triggerEvent
- unmuteChannel
- unreadMessage
- updateChannel
- updateCurrentUser
- updateCurrentUserDisplayPicture
- updateMessageProperties
- getInstance
Constructors
constructor
• new ChatKitty(configuration
)
Parameters
Name | Type |
---|---|
configuration | ChatKittyConfiguration |
Defined in
Properties
currentUser
• Optional
currentUser: CurrentUser
Defined in
Methods
addChannelModerator
▸ addChannelModerator(request
): Promise
<AddChannelModeratorResult
>
Parameters
Name | Type |
---|---|
request | AddChannelModeratorRequest |
Returns
Promise
<AddChannelModeratorResult
>
Defined in
blockUser
▸ blockUser(request
): Promise
<BlockUserResult
>
Parameters
Name | Type |
---|---|
request | BlockUserRequest |
Returns
Promise
<BlockUserResult
>
Defined in
checkChannelUnread
▸ checkChannelUnread(request
): Promise
<CheckChannelUnreadResult
>
Parameters
Name | Type |
---|---|
request | CheckChannelUnreadRequest |
Returns
Promise
<CheckChannelUnreadResult
>
Defined in
checkUserIsChannelMember
▸ checkUserIsChannelMember(request
): Promise
<CheckUserIsChannelMemberResult
>
Parameters
Name | Type |
---|---|
request | CheckUserIsChannelMemberRequest |
Returns
Promise
<CheckUserIsChannelMemberResult
>
Defined in
clearChannelHistory
▸ clearChannelHistory(request
): Promise
<ClearChannelHistoryResult
>
Parameters
Name | Type |
---|---|
request | ClearChannelHistoryRequest |
Returns
Promise
<ClearChannelHistoryResult
>
Defined in
countMessageReplies
▸ countMessageReplies(request
): Promise
<CountResult
>
Parameters
Name | Type |
---|---|
request | CountMessageRepliesRequest |
Returns
Promise
<CountResult
>
Defined in
countUnreadChannels
▸ countUnreadChannels(request?
): Promise
<CountResult
>
Parameters
Name | Type |
---|---|
request? | ListUnreadChannelsRequest |
Returns
Promise
<CountResult
>
Defined in
countUnreadMessages
▸ countUnreadMessages(request?
): Promise
<CountResult
>
Parameters
Name | Type |
---|---|
request? | CountUnreadMessagesRequest |
Returns
Promise
<CountResult
>
Defined in
createChannel
▸ createChannel(request
): Promise
<CreateChannelResult
>
Parameters
Name | Type |
---|---|
request | CreateChannelRequest |
Returns
Promise
<CreateChannelResult
>
Defined in
createThread
▸ createThread(request
): Promise
<CreateThreadResult
>
Parameters
Name | Type |
---|---|
request | CreateThreadRequest |
Returns
Promise
<CreateThreadResult
>
Defined in
deleteChannel
▸ deleteChannel(request
): Promise
<DeleteChannelResult
>
Parameters
Name | Type |
---|---|
request | DeleteChannelRequest |
Returns
Promise
<DeleteChannelResult
>
Defined in
deleteMessage
▸ deleteMessage(request
): Promise
<DeleteMessageResult
>
Parameters
Name | Type |
---|---|
request | DeleteMessageRequest |
Returns
Promise
<DeleteMessageResult
>
Defined in
deleteUserBlockedRecord
▸ deleteUserBlockedRecord(request
): Promise
<DeleteUserBlockedRecordResult
>
Parameters
Name | Type |
---|---|
request | DeleteUserBlockedRecordRequest |
Returns
Promise
<DeleteUserBlockedRecordResult
>
Defined in
editMessage
▸ editMessage(request
): Promise
<EditMessageResult
>
Parameters
Name | Type |
---|---|
request | EditMessageRequest |
Returns
Promise
<EditMessageResult
>
Defined in
endSession
▸ endSession(): Promise
<void
>
Returns
Promise
<void
>
Defined in
hideChannel
▸ hideChannel(request
): Promise
<HideChannelResult
>
Parameters
Name | Type |
---|---|
request | HideChannelRequest |
Returns
Promise
<HideChannelResult
>
Defined in
inviteUser
▸ inviteUser(request
): Promise
<InviteUserResult
>
Parameters
Name | Type |
---|---|
request | InviteUserRequest |
Returns
Promise
<InviteUserResult
>
Defined in
joinChannel
▸ joinChannel(request
): Promise
<JoinChannelResult
>
Parameters
Name | Type |
---|---|
request | JoinChannelRequest |
Returns
Promise
<JoinChannelResult
>
Defined in
leaveChannel
▸ leaveChannel(request
): Promise
<LeaveChannelResult
>
Parameters
Name | Type |
---|---|
request | LeaveChannelRequest |
Returns
Promise
<LeaveChannelResult
>
Defined in
listChannelMembers
▸ listChannelMembers(request
): Promise
<ListUsersResult
>
Parameters
Name | Type |
---|---|
request | ListChannelMembersRequest |
Returns
Promise
<ListUsersResult
>
Defined in
listChannels
▸ listChannels(request?
): Promise
<ListChannelsResult
>
Parameters
Name | Type |
---|---|
request? | ListChannelsRequest |
Returns
Promise
<ListChannelsResult
>
Defined in
listMessages
▸ listMessages(request
): Promise
<ListMessagesResult
>
Parameters
Name | Type |
---|---|
request | ListMessagesRequest |
Returns
Promise
<ListMessagesResult
>
Defined in
listReactions
▸ listReactions(request
): Promise
<ListReactionsResult
>
Parameters
Name | Type |
---|---|
request | ListReactionsRequest |
Returns
Promise
<ListReactionsResult
>
Defined in
listReadReceipts
▸ listReadReceipts(request
): Promise
<ListReadReceiptsResult
>
Parameters
Name | Type |
---|---|
request | ListReadReceiptsRequest |
Returns
Promise
<ListReadReceiptsResult
>
Defined in
listThreadChannel
▸ listThreadChannel(request
): Promise
<RetrieveThreadChannelResult
>
Parameters
Name | Type |
---|---|
request | RetrieveThreadChannelRequest |
Returns
Promise
<RetrieveThreadChannelResult
>
Defined in
listThreadMessage
▸ listThreadMessage(request
): Promise
<RetrieveThreadMessageResult
>
Parameters
Name | Type |
---|---|
request | RetrieveThreadMessageRequest |
Returns
Promise
<RetrieveThreadMessageResult
>
Defined in
listThreads
▸ listThreads(request
): Promise
<ListThreadsResult
>
Parameters
Name | Type |
---|---|
request | ListChannelThreadsRequest |
Returns
Promise
<ListThreadsResult
>
Defined in
listUserBlockedRecords
▸ listUserBlockedRecords(): Promise
<ListUserBlockedRecordsResult
>
Returns
Promise
<ListUserBlockedRecordsResult
>
Defined in
listUsers
▸ listUsers(request?
): Promise
<ListUsersResult
>
Parameters
Name | Type |
---|---|
request? | ListUsersRequest |
Returns
Promise
<ListUsersResult
>
Defined in
listUsersCount
▸ listUsersCount(request?
): Promise
<CountResult
>
Parameters
Name | Type |
---|---|
request? | ListUsersRequest |
Returns
Promise
<CountResult
>
Defined in
muteChannel
▸ muteChannel(request
): Promise
<MuteChannelResult
>
Parameters
Name | Type |
---|---|
request | MuteChannelRequest |
Returns
Promise
<MuteChannelResult
>
Defined in
onChannelHidden
▸ onChannelHidden(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <Channel > | (channel : Channel ) => void |
Returns
Defined in
onChannelJoined
▸ onChannelJoined(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <Channel > | (channel : Channel ) => void |
Returns
Defined in
onChannelLeft
▸ onChannelLeft(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <Channel > | (channel : Channel ) => void |
Returns
Defined in
onChannelUnhidden
▸ onChannelUnhidden(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <Channel > | (channel : Channel ) => void |
Returns
Defined in
onChannelUpdated
▸ onChannelUpdated(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <Channel > | (channel : Channel ) => void |
Returns
Defined in
onCurrentUserChanged
▸ onCurrentUserChanged(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <null | CurrentUser > | (user : null | CurrentUser ) => void |
Returns
Defined in
onCurrentUserOffline
▸ onCurrentUserOffline(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <CurrentUser > | () => void |
Returns
Defined in
onCurrentUserOnline
▸ onCurrentUserOnline(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <CurrentUser > | () => void |
Returns
Defined in
onNotificationReceived
▸ onNotificationReceived(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <Notification > | (notification : Notification ) => void |
Returns
Defined in
onParticipantStartedTyping
▸ onParticipantStartedTyping(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <User > | (participant : User ) => void |
Returns
Defined in
onParticipantStoppedTyping
▸ onParticipantStoppedTyping(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <User > | (participant : User ) => void |
Returns
Defined in
onUserPresenceChanged
▸ onUserPresenceChanged(onNextOrObserver
): ChatKittyUnsubscribe
Parameters
Name | Type |
---|---|
onNextOrObserver | ChatKittyObserver <User > | (user : User ) => void |
Returns
Defined in
reactToMessage
▸ reactToMessage(request
): Promise
<ReactToMessageResult
>
Parameters
Name | Type |
---|---|
request | ReactToMessageRequest |
Returns
Promise
<ReactToMessageResult
>
Defined in
readChannel
▸ readChannel(request
): Promise
<ReadChannelResult
>
Parameters
Name | Type |
---|---|
request | ReadChannelRequest |
Returns
Promise
<ReadChannelResult
>
Defined in
readMessage
▸ readMessage(request
): Promise
<ReadMessageResult
>
Parameters
Name | Type |
---|---|
request | ReadMessageRequest |
Returns
Promise
<ReadMessageResult
>
Defined in
readThread
▸ readThread(request
): Promise
<ReadThreadResult
>
Parameters
Name | Type |
---|---|
request | ReadThreadRequest |
Returns
Promise
<ReadThreadResult
>
Defined in
removeReaction
▸ removeReaction(request
): Promise
<RemoveReactionResult
>
Parameters
Name | Type |
---|---|
request | RemoveReactionRequest |
Returns
Promise
<RemoveReactionResult
>
Defined in
retrieveChannel
▸ retrieveChannel(id
): Promise
<RetrieveChannelResult
>
Parameters
Name | Type |
---|---|
id | number |
Returns
Promise
<RetrieveChannelResult
>
Defined in
retrieveChannelContext
▸ retrieveChannelContext(request
): Promise
<RetrieveChannelContextResult
>
Parameters
Name | Type |
---|---|
request | RetrieveChannelContextRequest |
Returns
Promise
<RetrieveChannelContextResult
>
Defined in
retrieveCurrentUser
▸ retrieveCurrentUser(): Promise
<RetrieveCurrentUserResult
>
Returns
Promise
<RetrieveCurrentUserResult
>
Defined in
retrieveLastReadMessage
▸ retrieveLastReadMessage(request
): Promise
<RetrieveLastReadMessageResult
>
Parameters
Name | Type |
---|---|
request | RetrieveLastReadMessageRequest |
Returns
Promise
<RetrieveLastReadMessageResult
>
Defined in
retrieveMessageChannel
▸ retrieveMessageChannel(request
): Promise
<RetrieveMessageChannelResult
>
Parameters
Name | Type |
---|---|
request | RetrieveMessageChannelRequest |
Returns
Promise
<RetrieveMessageChannelResult
>
Defined in
retrieveMessageParent
▸ retrieveMessageParent(request
): Promise
<RetrieveMessageParentResult
>
Parameters
Name | Type |
---|---|
request | RetrieveMessageParentRequest |
Returns
Promise
<RetrieveMessageParentResult
>
Defined in
retrieveUser
▸ retrieveUser(param
): Promise
<RetrieveUserResult
>
Parameters
Name | Type |
---|---|
param | number |
Returns
Promise
<RetrieveUserResult
>
Defined in
sendKeystrokes
▸ sendKeystrokes(request
): void
Parameters
Name | Type |
---|---|
request | SendKeystrokesRequest |
Returns
void
Defined in
sendMessage
▸ sendMessage(request
): Promise
<SendMessageResult
>
Parameters
Name | Type |
---|---|
request | SendMessageRequest |
Returns
Promise
<SendMessageResult
>
Defined in
startChatSession
▸ startChatSession(request
): StartedChatSessionResult
Parameters
Name | Type |
---|---|
request | StartChatSessionRequest |
Returns
Defined in
startSession
▸ startSession(request
): Promise
<StartSessionResult
>
Parameters
Name | Type |
---|---|
request | StartSessionRequest |
Returns
Promise
<StartSessionResult
>
Defined in
triggerEvent
▸ triggerEvent(request
): Promise
<TriggerEventResult
>
Parameters
Name | Type |
---|---|
request | TriggerEventRequest |
Returns
Promise
<TriggerEventResult
>
Defined in
unmuteChannel
▸ unmuteChannel(request
): Promise
<UnmuteChannelResult
>
Parameters
Name | Type |
---|---|
request | UnmuteChannelRequest |
Returns
Promise
<UnmuteChannelResult
>
Defined in
unreadMessage
▸ unreadMessage(request
): Promise
<UnreadMessageResult
>
Parameters
Name | Type |
---|---|
request | UnreadMessageRequest |
Returns
Promise
<UnreadMessageResult
>
Defined in
updateChannel
▸ updateChannel(request
): Promise
<UpdateChannelResult
>
Parameters
Name | Type |
---|---|
request | UpdateChannelRequest |
Returns
Promise
<UpdateChannelResult
>
Defined in
updateCurrentUser
▸ updateCurrentUser(update
): Promise
<UpdateCurrentUserResult
>
Parameters
Name | Type |
---|---|
update | (user : CurrentUser ) => CurrentUser |
Returns
Promise
<UpdateCurrentUserResult
>
Defined in
updateCurrentUserDisplayPicture
▸ updateCurrentUserDisplayPicture(request
): Promise
<UpdateCurrentUserDisplayPictureResult
>
Parameters
Name | Type |
---|---|
request | UpdateCurrentUserDisplayPictureRequest |
Returns
Promise
<UpdateCurrentUserDisplayPictureResult
>
Defined in
updateMessageProperties
▸ updateMessageProperties(request
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
request | UpdateMessagePropertiesRequest |
Returns
Promise
<unknown
>
Defined in
getInstance
▸ Static
getInstance(apiKey
): ChatKitty
Parameters
Name | Type |
---|---|
apiKey | string |