# Class SingleServerNotifier OptimaJet.Workflow.RealTimeTrackingPlugin.Notifiers.SingleServerNotifier A class for system notifications in SingleServer mode. Namespace: [OptimaJet.Workflow.RealTimeTrackingPlugin.Notifiers](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin.Notifiers/) ```csharp public class SingleServerNotifier : BaseNotifier ``` ## Type Hierarchy - [BaseNotifier](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin.Notifiers/BaseNotifier/) - SingleServerNotifier Current type ## Constructors `public SingleServerNotifier(WorkflowRuntime runtime, RealTimeTrackingPluginSettings settings, Func getDisabledFn)` Initializes a new instance of the [SingleServerNotifier](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin.Notifiers/SingleServerNotifier/) class. ### Parameters | Name | Type | Description | | --- | --- | --- | | `runtime` | `WorkflowRuntime` | WorkflowRuntime. | | `settings` | `RealTimeTrackingPluginSettings` | [RealTimeTrackingPluginSettings](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin/RealTimeTrackingPluginSettings/). | | `getDisabledFn` | `Func` | A function that returns a boolean indicating whether the plugin is disabled. | ## Methods `public override Task OnConnectedAsync(string processId, string connectionId)` Method to handle client connection to a process for tracking purposes. ### Parameters | Name | Type | Description | | --- | --- | --- | | `processId` | `String` | ProcessId of the ProcessInstance. | | `connectionId` | `String` | The unique identifier of the client's connection. | ### Returns | Type | Description | | --- | --- | | `Task` | A [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task) representing the asynchronous operation. | `public override Task OnDisconnectedAsync(string connectionId)` Handles the disconnection of a connection. ### Parameters | Name | Type | Description | | --- | --- | --- | | `connectionId` | `String` | The unique identifier for the connection. | ### Returns | Type | Description | | --- | --- | | `Task` | A [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task) representing the asynchronous operation. | `public override Task StopAsync()` Stops the plugin. ### Returns | Type | Description | | --- | --- | | `Task` | A [Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task) representing the asynchronous operation. | [Previous NotifierService](https://api.workflowengine.io/realtime-tracking-plugin/OptimaJet.Workflow.RealTimeTrackingPlugin.Notifiers/NotifierService/)