Creates a new GunDB relay server instance
Configuration options for the relay server
Private
_isPrivate
configPrivate
gunPrivate
logPrivate
serverPrivate
statusGets the Gun instance
Gun instance
Gets the relay URL
Relay URL string
Gets the server instance
Server instance
Checks if the relay is healthy
Promise that resolves to true if healthy
Private
initializeInitialize Gun instance asynchronously
Checks if the relay is running in a Node.js environment
True if running in Node.js
Starts the relay server
Promise that resolves when the server is started
Stops the relay server
Promise that resolves when the server is stopped
Updates the relay configuration
New configuration options
GunDB Relay Server Class
This class creates and manages a GunDB relay server that can:
Note: This class is primarily designed for Node.js environments. In browser environments, most functionality will be limited.