KestrunHub class
Default SignalR hub for Kestrun providing real-time communication capabilities. Clients can connect to this hub to receive log messages, events, and other real-time updates.
public class KestrunHub : Hub
| parameter | description |
|---|---|
| logger | The Serilog logger instance. |
| tracker | The connection tracker for counting connected clients. |
Public Members
| name | description |
|---|---|
| KestrunHub(…) | Default SignalR hub for Kestrun providing real-time communication capabilities. Clients can connect to this hub to receive log messages, events, and other real-time updates. |
| Echo(…) | Echoes a message back to the caller (useful for testing). |
| JoinGroup(…) | Allows a client to join a specific group. |
| LeaveGroup(…) | Allows a client to leave a specific group. |
| override OnConnectedAsync() | Called when a client connects to the hub. |
| override OnDisconnectedAsync(…) | Called when a client disconnects from the hub. |
Remarks
Initializes a new instance of the KestrunHub class.
See Also
- namespace Kestrun.SignalR