Skip to content

Multiple responses for a request #1600

Answered by Jarema
Doomsta asked this question in Q&A
Discussion options

You must be logged in to vote

Request is using Publish and Subscribe under the hood.

You can achieve the same goal creating a subscription first:

// with callback
nc.Subscribe("service", cb) 
// or a sync variant
 nc.SubscribeSync("service")

and then send request:

nc.PublishRequest("requestTo", "service", []byte("data"))

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Doomsta
Comment options

Answer selected by Doomsta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants