delphistompclient icon indicating copy to clipboard operation
delphistompclient copied to clipboard

Virtual host missing on Connect Methode

Open vuolp opened this issue 8 years ago • 1 comments

For connecting to a virtual host on RabbitMQ I miss a parameter for the virtual host name on method TStompClient.Connect.

For a test I have add a parameter host to the header in your code:

if STOMP_Version_1_1 in [FClientAcceptProtocolVersion] then
begin
    Frame.GetHeaders.Add('heart-beat', '0,1000'); // stomp 1.1
    Frame.GetHeaders.Add('accept-version', '1.1'); // stomp 1.1
    Frame.GetHeaders.Add('host', virtualhost); // stomp 1.1
end;

With this modification I can send messages to the right virtual host on my RabbitMQ.

vuolp avatar May 27 '16 08:05 vuolp

Good, thank you.

danieleteti avatar May 27 '16 13:05 danieleteti