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

How can I specify a protocol? #92

Closed
GildedHonour opened this issue Jan 29, 2016 · 1 comment
Closed

How can I specify a protocol? #92

GildedHonour opened this issue Jan 29, 2016 · 1 comment

Comments

@GildedHonour
Copy link

How can I specify a protocol? I need "ssl+stomp" or just "ssl" or "https" or "amqp+ssl".

This doesn't work:

conn = stomp.Connection(host_and_ports=[("stomp+ssl://something.com", 61613)], use_ssl=True)

and even this doesn't:

conn = stomp.Connection(host_and_ports=[("ssl://something.com", 61613)], use_ssl=True)

whereas this does but it costed me a few hours to discover it because in the documentation isn't described:

conn = stomp.Connection(host_and_ports=[("something.com", 61613)], use_ssl=True)
@jasonrbriggs
Copy link
Owner

Sorry for the delay replying. It's "hosts and ports" not "urn and ports". So you don't specify the protocol, you specify the domain/ip and port (as per http://jasonrbriggs.github.io/stomp.py/api.html#establishing-a-connection). Under the covers this is a low level socket connection.

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

No branches or pull requests

2 participants