Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #13 from athenp/master
Browse files Browse the repository at this point in the history
Add commented reference to rpc callstart and calljoin
  • Loading branch information
athenp authored Nov 26, 2019
2 parents 05de1e6 + cc49585 commit eb8b02a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions dist/forsta-messenger-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,44 @@ forsta.messenger = forsta.messenger || {};
async threadOpen(id) {
await this._rpc.invokeCommand('thread-open', id);
}

/**
* Create a new call manager in a given thread or with a given ID.
*
* @param {string} id - The thread ID in which to create a new call manager OR a callId.
* @param {bool} options - Optional argument used to pass in certain desired parameters.
* For example: {autoJoin: true} will automatically join the newly created call.
*/
async threadCallStart(id, options) {
await this._rpc.invokeCommand('thread-call-start', id, options);
}

/**
* Join a specified previously created call.
*
* @param {string} id - The call id of the call.
*/
async threadCallJoin(id) {
await this._rpc.invokeCommand('thread-call-join', id);
}

/**
* Leave a specified call.
*
* @param {string} id - The call id of the call.
*/
async threadCallLeave(id) {
await this._rpc.invokeCommand('thread-call-join', id);
}

/**
* Destroy a specified call.
*
* @param {string} id - The call id of the call.
*/
async threadCallEnd(id) {
await this._rpc.invokeCommand('thread-call-end', id);
}

/**
* Set the expiration time for messages in a thread. When this value is set to a non-zero
Expand Down

0 comments on commit eb8b02a

Please sign in to comment.