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).
 
parseTime(value)
Protocol version 1 uses integers for dates, later versions use dates in ISO 8601 format.
 
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}

{Date} parseTime(value)
Protocol version 1 uses integers for dates, later versions use dates in ISO 8601 format. This function takes a date in either format and returns a Date object.
Defined in: protocol.js.
Parameters:
{string|number} value
Returns:
{Date}

{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 Apr 18 2024 12:10:19 GMT+0200 (CEST)