Disconnects the WebSocket client from the server.
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 11 days ago