Module: packet/clone

This module implements packet list cloning required to pass certain object types between the web worker and main thread using the structured cloning algorithm.

Source:

Methods

(static) clonePackets(options) → {Object}

Create a packetlist from the correspoding object types.

Parameters:
Name Type Description
options Object

the object passed to and from the web worker

Source:
Returns:

a mutated version of the options optject

Type
Object

(static) parseClonedPackets(options, method) → {Object}

Creates an object with the correct prototype from a corresponding packetlist.

Parameters:
Name Type Description
options Object

the object passed to and from the web worker

method String

the public api function name to be delegated to the worker

Source:
Returns:

a mutated version of the options optject

Type
Object