Disconnect
Disconnects the WebSocket client from the server.
await ChatClient.Disconnect();try
{
await ChatClient.Disconnect();
Console.WriteLine("Disconnected from server.");
}
catch (Exception ex)
{
Console.WriteLine($"Error during disconnection: {ex.Message}");
}Last updated