go-stomp / stomp

Go language library for STOMP protocol
Apache License 2.0
318 stars 96 forks source link

Unable to receive replies #125

Closed marlongerson closed 9 months ago

marlongerson commented 1 year ago

How do we receive replies after specifying the reply-to header? As I understand, when a client specifies the reply-to header in a Send, the client will automatically be subscribed to that reply-to destination.

Currently, the reply is ignored: https://github.com/go-stomp/stomp/blob/master/conn.go#L337

How are we supposed to receive the reply?

worg commented 1 year ago

You need to have an existing subscription to the destination in reply-to header before sending messages using it. It's good to note, there's nothing in the spec indicating an automatic subscription on reply-to usage, AFAICT that's a nonstandard extension from some servers (ActiveMQ being one of them)

On Tue, 3 Jan 2023, 16:12 marlongerson, @.***> wrote:

How do we receive replies after specifying the reply-to header? As I understand, when a client specifies the reply-to header in a Send, they will automatically subscribe to that reply-to destination.

Currently, the reply is ignored: https://github.com/go-stomp/stomp/blob/master/conn.go#L337

How are we supposed to receive the reply?

— Reply to this email directly, view it on GitHub https://github.com/go-stomp/stomp/issues/125, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFE4G43J7PZQFEZ4Z7VDCTWQSP4VANCNFSM6AAAAAATQELZII . You are receiving this because you are subscribed to this thread.Message ID: @.***>