Example #1
0
 public void Send(MessageComposer composer, bool flush)
 {
     Engine.Logger.Info(System.Text.Encoding.GetEncoding(0).GetString(composer.GetBytes()));
     if (flush)
     {
         _channel.WriteAndFlushAsync(Unpooled.CopiedBuffer(composer.GetBytes()));
     }
     else
     {
         _channel.WriteAsync(Unpooled.CopiedBuffer(composer.GetBytes()));
     }
 }