danieleteti / delphistompclient

STOMP client for Embarcadero Delphi and FreePascal.
141 stars 64 forks source link

delphistompclient subscribe headers selector #37

Open EmiliaVieira opened 11 months ago

EmiliaVieira commented 11 months ago

How to subscribe to a queue and receive messages only according to the desired header? I tried FClient.Subscribe('/queue/' + edtQueue.Text, TAckMode.amClient, StompUtils.Headers.Add('type', 'x'));, but I keep receiving messages with other types of headers