Built-In Namespace _global_
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(sc, id)
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.
Defined in: protocol.js.
- Returns:
- {string}
{string}
newRandomId()
newRandomId returns a random string of 32 hex digits (16 bytes).
Defined in: protocol.js.
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.
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.
Defined in: protocol.js.
- Parameters:
- {number[]|Uint8Array} array
- - the array to format
- Returns:
- {string} - the hexadecimal representation of array