Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
galene
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
galene
Commits
33bfb433
Commit
33bfb433
authored
Aug 14, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark async functions explicitly in protocol.js.
JSDoc doesn't recognise them otherwise.
parent
78488224
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
static/protocol.js
static/protocol.js
+8
-1
No files found.
static/protocol.js
View file @
33bfb433
...
...
@@ -162,6 +162,7 @@ ServerConnection.prototype.send = function(m) {
* lazily by connect.
*
* @returns {Promise<Array.<Object>>}
* @function
*/
ServerConnection
.
prototype
.
getIceServers
=
async
function
()
{
let
r
=
await
fetch
(
'
/ice-servers.json
'
);
...
...
@@ -452,6 +453,7 @@ ServerConnection.prototype.userAction = function(kind, id) {
* @param {Object.<string, string>} labels
* @param {RTCSessionDescriptionInit} offer
* @param {boolean} renegotiate
* @function
*/
ServerConnection
.
prototype
.
gotOffer
=
async
function
(
id
,
labels
,
offer
,
renegotiate
)
{
let
sc
=
this
;
...
...
@@ -554,6 +556,7 @@ ServerConnection.prototype.gotLabel = function(id, label) {
*
* @param {string} id
* @param {RTCSessionDescriptionInit} answer
* @function
*/
ServerConnection
.
prototype
.
gotAnswer
=
async
function
(
id
,
answer
)
{
let
c
=
this
.
up
[
id
];
...
...
@@ -574,6 +577,7 @@ ServerConnection.prototype.gotAnswer = async function(id, answer) {
* call this.
*
* @param {string} id
* @function
*/
ServerConnection
.
prototype
.
gotRenegotiate
=
async
function
(
id
)
{
let
c
=
this
.
up
[
id
];
...
...
@@ -620,6 +624,7 @@ ServerConnection.prototype.gotAbort = function(id) {
*
* @param {string} id
* @param {RTCIceCandidate} candidate
* @function
*/
ServerConnection
.
prototype
.
gotICE
=
async
function
(
id
,
candidate
)
{
let
c
=
this
.
up
[
id
];
...
...
@@ -805,6 +810,7 @@ Stream.prototype.close = function(sendclose) {
/**
* flushIceCandidates flushes any buffered ICE candidates. It is called
* automatically when the connection reaches a stable state.
* @function
*/
Stream
.
prototype
.
flushIceCandidates
=
async
function
()
{
let
promises
=
[];
...
...
@@ -820,6 +826,7 @@ Stream.prototype.flushIceCandidates = async function () {
* automatically when required. If the client requires renegotiation, it
* is probably more effective to call restartIce on the underlying PC
* rather than invoking this function directly.
* @function
*/
Stream
.
prototype
.
negotiate
=
async
function
()
{
let
c
=
this
;
...
...
@@ -853,7 +860,7 @@ Stream.prototype.negotiate = async function () {
* updateStats is called periodically, if requested by setStatsInterval,
* in order to recompute stream statistics and invoke the onstats handler.
*
* @
returns {Promise<void>}
* @
function
*/
Stream
.
prototype
.
updateStats
=
async
function
()
{
let
c
=
this
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment