Service class for managing the online/offline status of clients within swarms.
Provides methods to mark clients as online or offline, leveraging persistent storage via PersistAliveAdapter
.
constructor();
loggerService: any
markOnline: (clientId: string, swarmName: string, methodName: string) => Promise<void>
Marks a client as online within a specific swarm and logs the action.
Persists the online status using PersistAliveAdapter
if persistence is enabled in the global configuration.
Used to track the specific client’s online status within a SwarmName
.
Defines the context in which the client’s online status is managed and persisted.
markOffline: (clientId: string, swarmName: string, methodName: string) => Promise<void>
Marks a client as offline within a specific swarm and logs the action.
Persists the offline status using PersistAliveAdapter
if persistence is enabled in the global configuration.
Used to track the specific client’s offline status within a SwarmName
.
Defines the context in which the client’s offline status is managed and persisted.