Skip to content

@nhtio/swarm ​

The module which contains types and utilities for using the library.

Classes ​

ClassDescription
SecretDefine a Secret value that hides itself from the logs or the console statements.
SwarmThe class that provides peer communication between browser tabs and service workers

Variables ​

VariableDescription
versionThe current version of the package.

Functions ​

FunctionDescription
setLogLevelSets the log level for the logger.
setPSKSet the pre-shared key used to ensure that any data shared between nodes in the swarm is encrypted and namespaced.

References ​

errors ​

Renames and re-exports @nhtio/swarm/errors


types ​

Renames and re-exports @nhtio/swarm/types