Class Index | File Index

Classes


Built-In Namespace _global_

Method Summary
Method Attributes Method Name and Description
 
newLocalId returns a string that is unique in this session.
 
newRandomId returns a random string of 32 hex digits (16 bytes).
 
recomputeUserStreams recomputes the user.streams array for a given user.
 
toHex(array)
toHex formats an array as a hexadecimal string.
Method Detail
{string} newLocalId()
newLocalId returns a string that is unique in this session.
Defined in: protocol.js.
Returns:
{string}

{string} newRandomId()
newRandomId returns a random string of 32 hex digits (16 bytes).
Defined in: protocol.js.
Returns:
{string}

{boolean} recomputeUserStreams(sc, id)
recomputeUserStreams recomputes the user.streams array for a given user. It returns true if anything changed.
Defined in: protocol.js.
Parameters:
{ServerConnection} sc
{string} id
Returns:
{boolean}

{string} toHex(array)
toHex formats an array as a hexadecimal string.
Defined in: protocol.js.
Parameters:
{number[]|Uint8Array} array
- the array to format
Returns:
{string} - the hexadecimal representation of array

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 19 2022 15:08:57 GMT+0200 (CEST)