//CallBack->大厅连接断开触发 private void HallChat_OnClosed(HallChat sender) { this.HallWebsok = null; if (this.HallSokDisconnect != null) { this.HallSokDisconnect(this); } }
/// <summary> /// 设置大厅连接对象 /// </summary> /// <param name="chat"></param> public void SetHallWebSok(HallChat hsok) { this.IP = hsok.IP; this.HallWebsok = hsok; hsok.OnDisConnect += HallChat_OnClosed; if (hsok.IsConnect) { if (this.HallConnect != null) { this.HallConnect(this); } } }