Skip to content

When connect's host param is left as None the server hostname should be used instead of '' #13

@dantman

Description

@dantman

Right now for STOMP's host header to work at all the host= must be manually set when calling connect. If you don't then stompest will always leave it empty.

Instead of leaving it empty when unset the hostname of the fallback server being connected to should be used.

ie: When you use tcp://localhost:61613 in config and leave host as None then host: localhost should be used.
ie: When you use fallback:(tcp://a.stomp.local:61613,tcp://b.stomp.local:61613), leave host as None, and stompest connected to the second server then host: b.stomp.local should be used.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions