protected override void OnError(Connection con, string err) { base.OnError(con, err); StopPingpong(); if (OnSRSEvent != null) { OnSRSEvent.Invoke(SRSConst.ON_ERROR, new object[] { err }); } }
protected override void OnConnected(Connection con) { base.OnConnected(con); StartPingpong(); if (OnSRSEvent != null) { OnSRSEvent.Invoke(SRSConst.ON_CONNECTED, null); } }
protected override void OnClosed(Connection con) { base.OnClosed(con); StopPingpong(); if (OnSRSEvent != null) { OnSRSEvent.Invoke(SRSConst.ON_CLOSED, null); } }
protected override void OnReconnecting(Connection con) { base.OnReconnecting(con); // StopPingpong(); if (OnSRSEvent != null) { OnSRSEvent.Invoke(SRSConst.ON_RECONNECTING, null); } }