Adds a new event listener for the specified event. The class will ignore duplicate registrations of the same listener to the same event.
The name of the event to add the listener for.
The listener callback to register.
This object, in support of a fluent API.
The options that define how to create the Chat.
A promise that will be resolved with the id of the successfully created Chat.
Gets a DirectChat for the communication between the local user and another specified user.
The other user to get the DirectChat for.
A Promise resolved with the specified DirectChat.
Gets a DirectChat for the communication between the local user and a set of users.
The other users to get the DirectChat for.
A Promise resolved with the specified DirectChat.
Get multiple DirectChats for the communication between the local user and a sets of users.
The lists of users that specify the direct chats to get.
A Promise resolved with the specified DirectChat.
Provides the events emitted by this object as an Observable stream.
An Observable stream of all events emitted by this object.
Determines if a Chat with the specified id exists.
The chat id to check.
A promise resolved with true if the specified chat exists, or false otherwise.
Determines if a set of Chats with the specified ids exist.
The chat id to check.
A promise resolved with a map of chat id's to booleans that indicate of the chat exists.
The and array of the Chat ids to get.
A Promise that will be resolved with the specified Chat, if it exists.
The id of the Chat to get.
A Promise that will be resolved with the specified Chats, if they exists.
Leaves the specified Chat. The id must refer to an existing chat that the user is presently joined to.
The id of the Chat to leave.
A Promise that will be resolved when the Chat is successfully left.
Removes a single event listener for a specific event.
The name of the event to remove the listener for.
The listener callback to unregister.
This object, in support of a fluent API.
Adds a new event listener for the specified event. The class will ignore duplicate registrations of the same listener to the same event.
The name of the event to add the listener for.
The listener callback to register.
This object, in support of a fluent API.
Adds a single shot event listener for the specified event. The listener will be called the first time the specified event is fired after the event registration occurs, after which the registration will be removed and no further events will be passed to the listener.
The name of the event to add the listener for.
The listener callback to register.
This object, in support of a fluent API.
Gets a ChatPermissionManager which allows for querying and modifying permissions for the specified chat.
Removes the Chat with the specified id.
The id of the Chat to remove.
A promise that will be resolved when the Chat is successfully removed.
Removes all listeners for all events. This is useful for cleanup before disposing of this particular event emitter.
This object, in support of a fluent API.
Removes a single event listener for a specific event.
The name of the event to remove the listener for.
The listener callback to unregister.
This object, in support of a fluent API.
Removes all listeners bound on the given event.
the name of the event to remove listeners for
This object, in support of a fluent API.
Searches for existing chats.
The criteria to search for chats with.
Chat info objects for matching results.
The current ConvergenceSession.
The
ChatService
is the entry point for chat functionality. Chat is defined as textual communication limited to either a fixed set of participants, or a ChatRoom in which any members can send and receive messages.See the developer guide for a few chat examples.