Peer ID's id as a base58 string (multihash/CIDv0).
Information about Fluence Peer connection. Represented as object with the following keys:
isInitialized
: Is the peer initialized or not.peerId
: Peer Id of the peer. Null if the peer is not initializedisConnected
: Is the peer connected to network or notrelayPeerId
: Peer Id of the relay the peer is connected to. If the connection is direct relayPeerId is nullisDirect
: True if the peer is connected to the network directly (not through relay)Public interface to Fluence JS
Get the default peer instance
the default peer instance
Get the default peer's status
Default peer's status
Registers marine service within the default Fluence peer from wasm file. Following helper functions can be used to load wasm files:
buffer with the wasm file for service
the service id by which the service can be accessed in aqua
Removes the specified marine service from the default Fluence peer
the service id to remove
Initializes the default peer: starts the Aqua VM, initializes the default call service handlers and (optionally) connect to the Fluence network
object specifying peer configuration
Un-initializes the default peer: stops all the underlying workflows, stops the Aqua VM and disconnects from the Fluence network
Load wasm file from the file system. Only works in nodejs environment. The functions returns SharedArrayBuffer compatible with FluenceAppService methods.
path to the wasm file
SharedArrayBuffer with the wasm file
Load wasm file from npm package. Only works in nodejs environment. The function returns SharedArrayBuffer compatible with FluenceAppService methods.
object specifying the source of the file. Consist two fields: package name and file path.
SharedArrayBuffer with the wasm file
Load wasm file from the server. Only works in browsers. The function will try load file into SharedArrayBuffer if the site is cross-origin isolated. Otherwise the return value fallbacks to Buffer which is less performant but is still compatible with FluenceAppService methods. We strongly recommend to set-up cross-origin headers. For more details see: See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements Filename is relative to current origin.
path to the wasm file relative to current origin
Either SharedArrayBuffer or Buffer with the wasm file
Generated using TypeDoc
Enum representing the log level used in Aqua VM. Possible values: 'info', 'trace', 'debug', 'info', 'warn', 'error', 'off';