Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-08-23 16:47:50 +0300
committerJoas Schilling <coding@schilljs.com>2021-08-23 16:47:50 +0300
commit228aeb4dd17c89b6698b6d28aea91873147df55c (patch)
tree0287f2555a4a911bce74e369ff37dc3f4179dc39 /src/utils/signaling.js
parent4891e8017f4d4e837a7cde52c164abc61c1a72a7 (diff)
Autofixes
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/utils/signaling.js')
-rw-r--r--src/utils/signaling.js28
1 files changed, 22 insertions, 6 deletions
diff --git a/src/utils/signaling.js b/src/utils/signaling.js
index e9f19f006..412273dba 100644
--- a/src/utils/signaling.js
+++ b/src/utils/signaling.js
@@ -1,12 +1,18 @@
/**
* @copyright Copyright (c) 2019 Daniel Calviño Sánchez <danxuliu@gmail.com>
+ *
* @copyright Copyright (c) 2019 Ivan Sein <ivan@nextcloud.com>
+ *
* @copyright Copyright (c) 2019 Joachim Bauch <bauch@struktur.de>
+ *
* @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com>
*
* @author Daniel Calviño Sánchez <danxuliu@gmail.com>
+ *
* @author Ivan Sein <ivan@nextcloud.com>
+ *
* @author Joachim Bauch <bauch@struktur.de>
+ *
* @author Joas Schilling <coding@schilljs.com>
*
* @license GNU AGPL version 3 or any later version
@@ -49,8 +55,8 @@ const Signaling = {
/**
* Creates a connection to the signaling server
*
- * @param {Object} settings The signaling settings
- * @returns {Standalone|Internal}
+ * @param {object} settings The signaling settings
+ * @return {Standalone|Internal}
*/
createConnection(settings) {
if (!settings) {
@@ -65,6 +71,9 @@ const Signaling = {
},
}
+/**
+ * @param settings
+ */
function Base(settings) {
this.settings = settings
this.sessionId = ''
@@ -322,6 +331,9 @@ Signaling.Base.prototype.leaveCall = function(token, keepToken) {
}
// Connection to the internal signaling server provided by the app.
+/**
+ * @param settings
+ */
function Internal(settings) {
Signaling.Base.prototype.constructor.apply(this, arguments)
this.hideWarning = settings.hideWarning
@@ -420,8 +432,8 @@ Signaling.Internal.prototype.sendCallMessage = function(data) {
}
/**
- * @private
- */
+ * @private
+ */
Signaling.Internal.prototype._startPullingMessages = function() {
const token = this.currentRoomToken
if (!token) {
@@ -508,8 +520,8 @@ Signaling.Internal.prototype._startPullingMessages = function() {
}
/**
- * @private
- */
+ * @private
+ */
Signaling.Internal.prototype.sendPendingMessages = function() {
if (!this.spreedArrayConnection.length || this.isSendingMessages) {
return
@@ -527,6 +539,10 @@ Signaling.Internal.prototype.sendPendingMessages = function() {
}.bind(this))
}
+/**
+ * @param settings
+ * @param urls
+ */
function Standalone(settings, urls) {
Signaling.Base.prototype.constructor.apply(this, arguments)
if (typeof (urls) === 'string') {