Skip to content

Commit

Permalink
update jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
kele-leanes committed Dec 18, 2023
1 parent c8b0925 commit 51581e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/Conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ export default class Conversations<ContentTypes> {
* This method subscribes to conversations in real-time and listens for incoming conversation events.
* When a new conversation is detected, the provided callback function is invoked with the details of the conversation.
* @param {Function} callback - A callback function that will be invoked with the new Conversation when a conversation is started.
* @returns {Promise<void>} A Promise that resolves when the stream is set up.
* @warning This stream will continue infinitely. To end the stream, you can call {@linkcode Conversations.cancelStream | cancelStream()}.
* @returns {Promise<void>} A function that, when called, unsubscribes from the message stream and ends real-time updates..
*/
async stream(
callback: (conversation: Conversation<ContentTypes>) => Promise<void>
Expand Down Expand Up @@ -101,7 +100,7 @@ export default class Conversations<ContentTypes> {
*
* This method subscribes to all conversations in real-time and listens for incoming and outgoing messages.
* @param {Function} callback - A callback function that will be invoked when a message is sent or received.
* @returns {Promise<void>} A Promise that resolves when the stream is set up.
* @returns {Promise<void>} A function that, when called, unsubscribes from all the messages stream and ends real-time updates.
*/
async streamAllMessages(
callback: (message: DecodedMessage) => Promise<void>
Expand Down

0 comments on commit 51581e3

Please sign in to comment.