//passive public void OnDisconnect() { Logger.InfoFormat("VNetworkChannel.OnDisconnect:{0}", Id); _isConnected = false; PassiveClosed(); if (null != RealTimePeer) { RealTimePeer.OnDisconnect(); } }
//initative public override void Disconnect() { Logger.InfoFormat("Call Socket Disconnect{0}", Id); _isConnected = false; if (null != RealiableConn) { RealiableConn.OnDisconnect(); } if (null != RealTimePeer) { RealTimePeer.OnDisconnect(); } PassiveClosed(); }