Creates an instance of the ChatClient for a given resource and user.
The url of the Communication Services resource.
The token credential. Use AzureCommunicationTokenCredential from @azure/communication-common to create a credential.
Additional client options.
Creates a chat thread. Returns thread client with the id of the created thread.
Request for creating a chat thread.
Operation options.
Returns ChatThreadClient with the specific thread id.
Thread ID for the ChatThreadClient
Gets the list of chat threads of a user.
List chat threads options.
Unsubscribe from chatMessageReceived.
The ChatMessageReceivedEvent.
The listener to handle the event.
Unsubscribe from chatMessageEdited.
The ChatMessageEditedEvent.
The listener to handle the event.
Unsubscribe from chatMessageDeleted.
The ChatMessageDeletedEvent.
The listener to handle the event.
Unsubscribe from typingIndicatorReceived.
The TypingIndicatorReceivedEvent.
The listener to handle the event.
Unsubscribe from readReceiptReceived.
The ReadReceiptReceivedEvent.
The listener to handle the event.
Unsubscribe from chatThreadCreated.
The ChatThreadCreatedEvent.
The listener to handle the event.
Unsubscribe from chatThreadDeleted.
The ChatThreadDeletedEvent.
The listener to handle the event.
Unsubscribe from chatThreadPropertiesUpdated.
The ChatThreadPropertiesUpdatedEvent.
The listener to handle the event.
Unsubscribe from participantsAdded.
The ParticipantsAddedEvent.
The listener to handle the event.
Unsubscribe from participantsRemoved.
The ParticipantsRemovedEvent.
The listener to handle the event.
Subscribe function for chatMessageReceived. The initial sender will also receive this event. You need to call startRealtimeNotifications before subscribing to any event.
The ChatMessageReceivedEvent.
The listener to handle the event.
Subscribe function for chatMessageEdited. The initial sender will also receive this event.
The ChatMessageEditedEvent.
The listener to handle the event.
Subscribe function for chatMessageDeleted. The initial sender will also receive this event.
The ChatMessageDeletedEvent.
The listener to handle the event.
Subscribe function for typingIndicatorReceived. The initial sender will also receive this event.
The TypingIndicatorReceivedEvent.
The listener to handle the event.
Subscribe function for readReceiptReceived.
The ReadReceiptReceivedEvent.
The listener to handle the event.
Subscribe function for chatThreadCreated.
The ChatThreadCreatedEvent.
The listener to handle the event.
Subscribe function for chatThreadDeleted.
The ChatThreadDeletedEvent.
The listener to handle the event.
Subscribe function for chatThreadPropertiesUpdated.
The ChatThreadPropertiesUpdatedEvent.
The listener to handle the event.
Subscribe function for participantsAdded.
The ParticipantsAddedEvent.
The listener to handle the event.
Subscribe function for participantsRemoved.
The ParticipantsRemovedEvent.
The listener to handle the event.
Subscribe function for realTimeNotificationConnected.
The realTimeNotificationConnected Event
The listener to handle the event.
Subscribe function for realTimeNotificationDisconnected.
The realTimeNotificationDisconnected Event
The listener to handle the event.
Generated using TypeDoc
The client to do chat operations