You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As explained in README, the most popular libp2p pattern is request/response and the goal here is to provide utility for it.
Design
typeRequestorstruct {
// some private fields
}
// NewRequestor instantiates new Requestor for a given protocol ID with specified request and response// message types.NewRequestor(protocol.Id, serde.Message, serde.Message) *Requestor// Request sends the request as given message, blocks until a message is written, and returns a // channel awaiting for a response. // NOTE: This can also be done in fully non-blocking fashion if needed.func (r*Requestor) Request(peer.ID, serde.Message) <-chan serde.Message, error
The text was updated successfully, but these errors were encountered:
Context
As explained in README, the most popular libp2p pattern is request/response and the goal here is to provide utility for it.
Design
The text was updated successfully, but these errors were encountered: