Classes
Methods
(static) create(optionsopt) → {module:exchange~Exchange}
- Source:
Build a new Exchange object with our most current exchange version.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
Object |
<optional> |
Constructor options. |
Returns:
(static) decode(dataMessage, optionsopt) → {module:exchange~Exchange}
- Source:
Return a versioned Exchange instance based on the protocol buffer argument.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
dataMessage |
protobufs.DataMessage | The protocol buffer to decode. | |
options |
Object |
<optional> |
Options to pass into the Exchange constructor. |