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

Hostname resolution for thruway client #12

Open
senshi-x opened this issue Jan 18, 2018 · 1 comment
Open

Hostname resolution for thruway client #12

senshi-x opened this issue Jan 18, 2018 · 1 comment

Comments

@senshi-x
Copy link

When creating a new Rx\Thruway\Client, I cannot use hostnames, but must use IP address.

Why is that?

This works:
ws://123.456.78.9:9090

this doesn't:
ws://myservername:9090

My current workaround is to use
'ws://' . gethostbyname('myservername') . ':9090',

which feels wrong and unreliable.
If it's the same machine, using localhost:9090 also works, just not the actual hostname.

I use the same URL (incl. hostname) in vxWamp (used on browser/clientside) to reach the server, which works fine, which makes me believe it's not a resolution issue.

@davidwdan
Copy link
Member

At the moment you cannot override the default connector or dns resolver. This is something that we plan on addressing once we have a better mechanism for testing the connector.

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