delphistompclient
delphistompclient copied to clipboard
Virtual host missing on Connect Methode
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.
Good, thank you.