Table of Contents

Event Disconnected

Namespace
LMKit.Mcp.Transport
Assembly
LM-Kit.NET.dll

Raised when the transport connection is unexpectedly lost.

event EventHandler<McpTransportDisconnectedEventArgs> Disconnected

Returns

EventHandler<McpTransportDisconnectedEventArgs>
Raised when the transport connection is unexpectedly lost.

Remarks

This event fires when the connection drops due to network issues, server shutdown, process termination (for stdio), or other unexpected disconnections. It does not fire when CloseAsync(CancellationToken) is called explicitly.