new NdnCommon()
NdnCommon has static NDN utility methods and constants.
- Source:
Members
(static) MAX_NDN_PACKET_SIZE
The practical limit of the size of a network-layer packet. If a packet is
larger than this, the library or application MAY drop it. This constant is
defined in this low-level class so that internal code can use it, but
applications should use the static API method
Face.getMaxNdnPacketSize() which is equivalent.
- Source:
Methods
(static) checkIndexedDb(onComplete)
Check for Indexed DB support and call onComplete with the result as described
below. This has to use an onComplete callback since IndexedDB is async.
Parameters:
Name | Type | Description |
---|---|---|
onComplete |
function | This calls onComplete(haveIndexedDb) where haveIndexedDb is true if the browser has Indexed DB support, otherwise false. |
- Source:
(static) getErrorWithStackTrace(error) → {string}
Get the error message plus its stack trace.
Parameters:
Name | Type | Description |
---|---|---|
error |
Error | The error object. |
- Source:
Returns:
The error message, plus the stack trace with each line
separated by '\n'.
- Type
- string