Real reconnect delay is randomized in the intrval [reconnectDelay, reconnectInterval * 2]
Event is emitted when a connection is established or closed.
Event is emitted when the state of the connector changes. The event contains the value of the online state.
This returns all connection routes gorups.
The returned value is only meant to be used to display information, do not alter anything in there, because it is not a copy of the internal data structures!
Dump the connection information to console.
Disables all catch-all routes matching the passed parameters.
OptionallocalPublicKey: PublicKeyOptionalrouteId: stringDisables all routes matching the passed parameters.
This also includes catch-all routes if only the localPublicKey and / or routeId is set.
OptionallocalPublicKey: PublicKeyOptionalremotePublicKey: PublicKeyOptionalconnectionRoutesGroupName: stringOptionalrouteId: stringEnables all catch-all routes matching the passed parameters.
OptionallocalPublicKey: PublicKeyOptionalrouteId: stringEnables all routes matching the passed parameters.
This also includes catch-all routes if only the localPublicKey and / or routeId is set.
OptionallocalPublicKey: PublicKeyOptionalremotePublicKey: PublicKeyOptionalconnectionRoutesGroupName: stringOptionalrouteId: stringStaticappendAppend a new entry to the connectionsStatisticsLog.
Limits the maximum size to 10 (limit currently deactivated - heavy debugging)
This module manages incoming and outgoing connections.
You can define how a connection between two participants can be reached (called a connection route) and this module will try to open a single connection between those two participants using those routes.
Routes can be enabled / disabled giving the user control of when and how to establish connections.