public void Disconnect() { sessionTcp?.Disconnect(); sessionUdp?.Disconnect(); packetHandlers.Clear(); }
public void Disconnect(int node) { if (m_sessionTcp != null) { m_sessionTcp.Disconnect(node); } if (m_sessionUdp != null) { m_sessionUdp.Disconnect(node); } }