diff --git a/src/handle.js b/src/handle.js index a689ad4..92ac64d 100644 --- a/src/handle.js +++ b/src/handle.js @@ -401,7 +401,7 @@ class Handle extends EventEmitter { * Helper to close a transaction with error. * * @property {string} id - The transaction id - * @property {string} error - The error message + * @property {object} error - The error object * @returns {void} */ closeTransactionWithError(id, error) { diff --git a/src/plugins/echotest-plugin.js b/src/plugins/echotest-plugin.js index ec3bf86..92a029a 100644 --- a/src/plugins/echotest-plugin.js +++ b/src/plugins/echotest-plugin.js @@ -169,7 +169,7 @@ class EchoTestHandle extends Handle { * * @type {object} * @property {string} id - The plugin identifier used when attaching to Janus - * @property {module:audiobridge-plugin~AudioBridgeHandle} Handle - The custom class implementing the plugin + * @property {module:echotest-plugin~EchoTestHandle} Handle - The custom class implementing the plugin * @property {object} EVENT - The events emitted by the plugin * @property {string} EVENT.ECHOTEST_RESULT {@link module:echotest-plugin~ECHOTEST_RESULT} * @property {string} EVENT.ECHOTEST_SLOWLINK {@link module:echotest-plugin~ECHOTEST_SLOWLINK} diff --git a/src/tmanager.js b/src/tmanager.js index c6d2a4c..a084fd7 100644 --- a/src/tmanager.js +++ b/src/tmanager.js @@ -156,7 +156,7 @@ class TransactionManager { * * @param {string} id - The transaction identifier * @param {object} owner - A reference to the transaction owner - * @param {string} error - The error string + * @param {object} error - The error object * @returns {PendingTransaction|void} The closed transaction, or nothing if the id does not exist or the owner does not match */ closeTransactionWithError(id, owner, error) { @@ -175,7 +175,7 @@ class TransactionManager { * The closed transactions will be removed from the internal table. * * @param {object} [owner] - A reference to the transaction owner - * @param {string} error - The error string + * @param {object} error - The error object */ closeAllTransactionsWithError(owner, error) { for (const [_, pendingTx] of this.transactions) {