Disconnect
Disconnects the WebSocket client from the server.
This feature is deprecated and will be unsupported.
Usage:
await ChatClient.Disconnect();
Example:
try
{
await ChatClient.Disconnect();
Console.WriteLine("Disconnected from server.");
}
catch (Exception ex)
{
Console.WriteLine($"Error during disconnection: {ex.Message}");
}
Last updated