Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual host missing on Connect Methode #11

Open
vuolp opened this issue May 27, 2016 · 1 comment
Open

Virtual host missing on Connect Methode #11

vuolp opened this issue May 27, 2016 · 1 comment

Comments

@vuolp
Copy link

vuolp commented May 27, 2016

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.

@danieleteti
Copy link
Owner

Good, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants