public void Disconnect() { if (Chat.Chat.StorageManager.ChatSessions.ContainsKey(UserId)) { Chat.Chat.StorageManager.ChatSessions.Remove(UserId); } try { XSocket.Close(); } catch (Exception) { Out.WriteLog("Error disconnecting user from Chat", "CHAT"); } }
public void Stop() { serverSocket.Close(); }