public ArraySegment<byte> SerializeReply(Reply reply)
 {
     var message = Message.FromReply(reply);
     return SerializeMessage(message);
 }
Esempio n. 2
0
 public static Message FromReply(Reply reply) => new Message(reply.Topic, "phx_reply", new JObject { { "status", reply.Status }, { "response", reply.Payload } }, reply.Ref);
 /// <summary>
 /// Send a reply to the socket.
 /// </summary>
 public virtual Task SendReply(Reply reply) => SendByteArray(_socketSerializer.SerializeReply(reply));