Skip to main content

ChatKitty

ChatKitty JS Core SDK / Exports / ChatKitty

Class: ChatKitty

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ChatKitty(configuration)

Parameters

NameType
configurationChatKittyConfiguration

Defined in

lib/chatkitty.ts:261

Properties

currentUser

Optional currentUser: CurrentUser

Defined in

lib/chatkitty.ts:259

Methods

addChannelModerator

addChannelModerator(request): Promise<AddChannelModeratorResult>

Parameters

NameType
requestAddChannelModeratorRequest

Returns

Promise<AddChannelModeratorResult>

Defined in

lib/chatkitty.ts:679


blockUser

blockUser(request): Promise<BlockUserResult>

Parameters

NameType
requestBlockUserRequest

Returns

Promise<BlockUserResult>

Defined in

lib/chatkitty.ts:2076


checkChannelUnread

checkChannelUnread(request): Promise<CheckChannelUnreadResult>

Parameters

NameType
requestCheckChannelUnreadRequest

Returns

Promise<CheckChannelUnreadResult>

Defined in

lib/chatkitty.ts:733


checkUserIsChannelMember

checkUserIsChannelMember(request): Promise<CheckUserIsChannelMemberResult>

Parameters

NameType
requestCheckUserIsChannelMemberRequest

Returns

Promise<CheckUserIsChannelMemberResult>

Defined in

lib/chatkitty.ts:2051


clearChannelHistory

clearChannelHistory(request): Promise<ClearChannelHistoryResult>

Parameters

NameType
requestClearChannelHistoryRequest

Returns

Promise<ClearChannelHistoryResult>

Defined in

lib/chatkitty.ts:818


countMessageReplies

countMessageReplies(request): Promise<CountResult>

Parameters

NameType
requestCountMessageRepliesRequest

Returns

Promise<CountResult>

Defined in

lib/chatkitty.ts:1501


countUnreadChannels

countUnreadChannels(request?): Promise<CountResult>

Parameters

NameType
request?ListUnreadChannelsRequest

Returns

Promise<CountResult>

Defined in

lib/chatkitty.ts:702


countUnreadMessages

countUnreadMessages(request?): Promise<CountResult>

Parameters

NameType
request?CountUnreadMessagesRequest

Returns

Promise<CountResult>

Defined in

lib/chatkitty.ts:1376


createChannel

createChannel(request): Promise<CreateChannelResult>

Parameters

NameType
requestCreateChannelRequest

Returns

Promise<CreateChannelResult>

Defined in

lib/chatkitty.ts:522


createThread

createThread(request): Promise<CreateThreadResult>

Parameters

NameType
requestCreateThreadRequest

Returns

Promise<CreateThreadResult>

Defined in

lib/chatkitty.ts:1555


deleteChannel

deleteChannel(request): Promise<DeleteChannelResult>

Parameters

NameType
requestDeleteChannelRequest

Returns

Promise<DeleteChannelResult>

Defined in

lib/chatkitty.ts:507


deleteMessage

deleteMessage(request): Promise<DeleteMessageResult>

Parameters

NameType
requestDeleteMessageRequest

Returns

Promise<DeleteMessageResult>

Defined in

lib/chatkitty.ts:1680


deleteUserBlockedRecord

deleteUserBlockedRecord(request): Promise<DeleteUserBlockedRecordResult>

Parameters

NameType
requestDeleteUserBlockedRecordRequest

Returns

Promise<DeleteUserBlockedRecordResult>

Defined in

lib/chatkitty.ts:2109


editMessage

editMessage(request): Promise<EditMessageResult>

Parameters

NameType
requestEditMessageRequest

Returns

Promise<EditMessageResult>

Defined in

lib/chatkitty.ts:1473


endSession

endSession(): Promise<void>

Returns

Promise<void>

Defined in

lib/chatkitty.ts:336


hideChannel

hideChannel(request): Promise<HideChannelResult>

Parameters

NameType
requestHideChannelRequest

Returns

Promise<HideChannelResult>

Defined in

lib/chatkitty.ts:838


inviteUser

inviteUser(request): Promise<InviteUserResult>

Parameters

NameType
requestInviteUserRequest

Returns

Promise<InviteUserResult>

Defined in

lib/chatkitty.ts:1971


joinChannel

joinChannel(request): Promise<JoinChannelResult>

Parameters

NameType
requestJoinChannelRequest

Returns

Promise<JoinChannelResult>

Defined in

lib/chatkitty.ts:625


leaveChannel

leaveChannel(request): Promise<LeaveChannelResult>

Parameters

NameType
requestLeaveChannelRequest

Returns

Promise<LeaveChannelResult>

Defined in

lib/chatkitty.ts:652


listChannelMembers

listChannelMembers(request): Promise<ListUsersResult>

Parameters

NameType
requestListChannelMembersRequest

Returns

Promise<ListUsersResult>

Defined in

lib/chatkitty.ts:1848


listChannels

listChannels(request?): Promise<ListChannelsResult>

Parameters

NameType
request?ListChannelsRequest

Returns

Promise<ListChannelsResult>

Defined in

lib/chatkitty.ts:548


listMessages

listMessages(request): Promise<ListMessagesResult>

Parameters

NameType
requestListMessagesRequest

Returns

Promise<ListMessagesResult>

Defined in

lib/chatkitty.ts:1330


listReactions

listReactions(request): Promise<ListReactionsResult>

Parameters

NameType
requestListReactionsRequest

Returns

Promise<ListReactionsResult>

Defined in

lib/chatkitty.ts:1651


listReadReceipts

listReadReceipts(request): Promise<ListReadReceiptsResult>

Parameters

NameType
requestListReadReceiptsRequest

Returns

Promise<ListReadReceiptsResult>

Defined in

lib/chatkitty.ts:1871


listThreadChannel

listThreadChannel(request): Promise<RetrieveThreadChannelResult>

Parameters

NameType
requestRetrieveThreadChannelRequest

Returns

Promise<RetrieveThreadChannelResult>

Defined in

lib/chatkitty.ts:1589


listThreadMessage

listThreadMessage(request): Promise<RetrieveThreadMessageResult>

Parameters

NameType
requestRetrieveThreadMessageRequest

Returns

Promise<RetrieveThreadMessageResult>

Defined in

lib/chatkitty.ts:1605


listThreads

listThreads(request): Promise<ListThreadsResult>

Parameters

NameType
requestListChannelThreadsRequest

Returns

Promise<ListThreadsResult>

Defined in

lib/chatkitty.ts:1566


listUserBlockedRecords

listUserBlockedRecords(): Promise<ListUserBlockedRecordsResult>

Returns

Promise<ListUserBlockedRecordsResult>

Defined in

lib/chatkitty.ts:2089


listUsers

listUsers(request?): Promise<ListUsersResult>

Parameters

NameType
request?ListUsersRequest

Returns

Promise<ListUsersResult>

Defined in

lib/chatkitty.ts:1893


listUsersCount

listUsersCount(request?): Promise<CountResult>

Parameters

NameType
request?ListUsersRequest

Returns

Promise<CountResult>

Defined in

lib/chatkitty.ts:1920


muteChannel

muteChannel(request): Promise<MuteChannelResult>

Parameters

NameType
requestMuteChannelRequest

Returns

Promise<MuteChannelResult>

Defined in

lib/chatkitty.ts:772


onChannelHidden

onChannelHidden(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<Channel> | (channel: Channel) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:1752


onChannelJoined

onChannelJoined(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<Channel> | (channel: Channel) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:1728


onChannelLeft

onChannelLeft(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<Channel> | (channel: Channel) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:1800


onChannelUnhidden

onChannelUnhidden(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<Channel> | (channel: Channel) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:1776


onChannelUpdated

onChannelUpdated(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<Channel> | (channel: Channel) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:1824


onCurrentUserChanged

onCurrentUserChanged(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<null | CurrentUser> | (user: null | CurrentUser) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:363


onCurrentUserOffline

onCurrentUserOffline(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<CurrentUser> | () => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:395


onCurrentUserOnline

onCurrentUserOnline(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<CurrentUser> | () => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:379


onNotificationReceived

onNotificationReceived(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<Notification> | (notification: Notification) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:1702


onParticipantStartedTyping

onParticipantStartedTyping(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<User> | (participant: User) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:1992


onParticipantStoppedTyping

onParticipantStoppedTyping(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<User> | (participant: User) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:2016


onUserPresenceChanged

onUserPresenceChanged(onNextOrObserver): ChatKittyUnsubscribe

Parameters

NameType
onNextOrObserverChatKittyObserver<User> | (user: User) => void

Returns

ChatKittyUnsubscribe

Defined in

lib/chatkitty.ts:1947


reactToMessage

reactToMessage(request): Promise<ReactToMessageResult>

Parameters

NameType
requestReactToMessageRequest

Returns

Promise<ReactToMessageResult>

Defined in

lib/chatkitty.ts:1638


readChannel

readChannel(request): Promise<ReadChannelResult>

Parameters

NameType
requestReadChannelRequest

Returns

Promise<ReadChannelResult>

Defined in

lib/chatkitty.ts:755


readMessage

readMessage(request): Promise<ReadMessageResult>

Parameters

NameType
requestReadMessageRequest

Returns

Promise<ReadMessageResult>

Defined in

lib/chatkitty.ts:1431


readThread

readThread(request): Promise<ReadThreadResult>

Parameters

NameType
requestReadThreadRequest

Returns

Promise<ReadThreadResult>

Defined in

lib/chatkitty.ts:1621


removeReaction

removeReaction(request): Promise<RemoveReactionResult>

Parameters

NameType
requestRemoveReactionRequest

Returns

Promise<RemoveReactionResult>

Defined in

lib/chatkitty.ts:1665


retrieveChannel

retrieveChannel(id): Promise<RetrieveChannelResult>

Parameters

NameType
idnumber

Returns

Promise<RetrieveChannelResult>

Defined in

lib/chatkitty.ts:593


retrieveChannelContext

retrieveChannelContext(request): Promise<RetrieveChannelContextResult>

Parameters

NameType
requestRetrieveChannelContextRequest

Returns

Promise<RetrieveChannelContextResult>

Defined in

lib/chatkitty.ts:607


retrieveCurrentUser

retrieveCurrentUser(): Promise<RetrieveCurrentUserResult>

Returns

Promise<RetrieveCurrentUserResult>

Defined in

lib/chatkitty.ts:343


retrieveLastReadMessage

retrieveLastReadMessage(request): Promise<RetrieveLastReadMessageResult>

Parameters

NameType
requestRetrieveLastReadMessageRequest

Returns

Promise<RetrieveLastReadMessageResult>

Defined in

lib/chatkitty.ts:1454


retrieveMessageChannel

retrieveMessageChannel(request): Promise<RetrieveMessageChannelResult>

Parameters

NameType
requestRetrieveMessageChannelRequest

Returns

Promise<RetrieveMessageChannelResult>

Defined in

lib/chatkitty.ts:1517


retrieveMessageParent

retrieveMessageParent(request): Promise<RetrieveMessageParentResult>

Parameters

NameType
requestRetrieveMessageParentRequest

Returns

Promise<RetrieveMessageParentResult>

Defined in

lib/chatkitty.ts:1533


retrieveUser

retrieveUser(param): Promise<RetrieveUserResult>

Parameters

NameType
paramnumber

Returns

Promise<RetrieveUserResult>

Defined in

lib/chatkitty.ts:2040


sendKeystrokes

sendKeystrokes(request): void

Parameters

NameType
requestSendKeystrokesRequest

Returns

void

Defined in

lib/chatkitty.ts:1692


sendMessage

sendMessage(request): Promise<SendMessageResult>

Parameters

NameType
requestSendMessageRequest

Returns

Promise<SendMessageResult>

Defined in

lib/chatkitty.ts:1212


startChatSession

startChatSession(request): StartedChatSessionResult

Parameters

NameType
requestStartChatSessionRequest

Returns

StartedChatSessionResult

Defined in

lib/chatkitty.ts:850


startSession

startSession(request): Promise<StartSessionResult>

Parameters

NameType
requestStartSessionRequest

Returns

Promise<StartSessionResult>

Defined in

lib/chatkitty.ts:294


triggerEvent

triggerEvent(request): Promise<TriggerEventResult>

Parameters

NameType
requestTriggerEventRequest

Returns

Promise<TriggerEventResult>

Defined in

lib/chatkitty.ts:1407


unmuteChannel

unmuteChannel(request): Promise<UnmuteChannelResult>

Parameters

NameType
requestUnmuteChannelRequest

Returns

Promise<UnmuteChannelResult>

Defined in

lib/chatkitty.ts:795


unreadMessage

unreadMessage(request): Promise<UnreadMessageResult>

Parameters

NameType
requestUnreadMessageRequest

Returns

Promise<UnreadMessageResult>

Defined in

lib/chatkitty.ts:1442


updateChannel

updateChannel(request): Promise<UpdateChannelResult>

Parameters

NameType
requestUpdateChannelRequest

Returns

Promise<UpdateChannelResult>

Defined in

lib/chatkitty.ts:492


updateCurrentUser

updateCurrentUser(update): Promise<UpdateCurrentUserResult>

Parameters

NameType
update(user: CurrentUser) => CurrentUser

Returns

Promise<UpdateCurrentUserResult>

Defined in

lib/chatkitty.ts:411


updateCurrentUserDisplayPicture

updateCurrentUserDisplayPicture(request): Promise<UpdateCurrentUserDisplayPictureResult>

Parameters

NameType
requestUpdateCurrentUserDisplayPictureRequest

Returns

Promise<UpdateCurrentUserDisplayPictureResult>

Defined in

lib/chatkitty.ts:436


updateMessageProperties

updateMessageProperties(request): Promise<unknown>

Parameters

NameType
requestUpdateMessagePropertiesRequest

Returns

Promise<unknown>

Defined in

lib/chatkitty.ts:1487


getInstance

Static getInstance(apiKey): ChatKitty

Parameters

NameType
apiKeystring

Returns

ChatKitty

Defined in

lib/chatkitty.ts:221