private Task SendAsyncStreaming(INanoPacket message)
        {
            if (RemoteConnectionId == 0)
            {
                throw new NanoException(
                          "ControlHandshake was not registered inside NanoChannelContext");
            }

            message.Header.ConnectionId = RemoteConnectionId;
            byte[] packet = NanoPacketFactory.AssemblePacket(message, ChannelContext);
            return(_streamingProtoClient.SendAsync(packet, packet.Length));
        }
 private Task SendAsyncControl(INanoPacket message)
 {
     byte[] packet = NanoPacketFactory.AssemblePacket(message, ChannelContext);
     return(_controlProtoClient.SendAsyncPrefixed(packet));
 }