Commit fba0dded authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Type global variables in sfu.js.

parent e4aad04f
...@@ -349,7 +349,7 @@ ServerConnection.prototype.request = function(what) { ...@@ -349,7 +349,7 @@ ServerConnection.prototype.request = function(what) {
/** /**
* newUpStream requests the creation of a new up stream. * 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} * @returns {Stream}
*/ */
ServerConnection.prototype.newUpStream = function(id) { ServerConnection.prototype.newUpStream = function(id) {
......
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
'use strict'; 'use strict';
/** @type {string} */
let group; let group;
/** @type {ServerConnection} */
let serverConnection; let serverConnection;
function setUserPass(username, password) { function setUserPass(username, password) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment