@nhtio/swarm
The module which contains types and utilities for using the library.
Classes
| Class | Description |
|---|---|
| Secret | Define a Secret value that hides itself from the logs or the console statements. |
| Swarm | The class that provides peer communication between browser tabs and service workers |
Variables
| Variable | Description |
|---|---|
| version | The current version of the package. |
Functions
| Function | Description |
|---|---|
| setLogLevel | Sets the log level for the logger. |
| setPSK | Set 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