private void Error(OnErrorArgs args)
 {
     if (this.OnError != null)
         this.OnError.Invoke(this, args);
     this.XSocketClient.FireError(args);
 }
 public virtual void FireError(OnErrorArgs args)
 {
     if (this.OnError != null) this.OnError.Invoke(this, args);
 }
 private void Error(IMessage error)
 {
     var err = new OnErrorArgs(this.XSocketClient.Serializer.DeserializeFromString<Exception>(error.Data));
     this.Error(err);
 }