From fba0dded840fc81dad577831ca803ed3bcdd04a3 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Mon, 24 Aug 2020 22:31:22 +0200 Subject: [PATCH] Type global variables in sfu.js. --- static/protocol.js | 2 +- static/sfu.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/static/protocol.js b/static/protocol.js index ddda51f..7e3eeca 100644 --- a/static/protocol.js +++ b/static/protocol.js @@ -349,7 +349,7 @@ ServerConnection.prototype.request = function(what) { /** * newUpStream requests the creation of a new up stream. * - * @param {string} id - The id of the stream to create (optional). + * @param {string} [id] - The id of the stream to create. * @returns {Stream} */ ServerConnection.prototype.newUpStream = function(id) { diff --git a/static/sfu.js b/static/sfu.js index a263c7c..654ad42 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -5,7 +5,10 @@ 'use strict'; +/** @type {string} */ let group; + +/** @type {ServerConnection} */ let serverConnection; function setUserPass(username, password) {