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

Using WebSocket URIs without ports raises a NoMethodError #682

Open
nomis opened this issue Aug 8, 2021 · 0 comments
Open

Using WebSocket URIs without ports raises a NoMethodError #682

nomis opened this issue Aug 8, 2021 · 0 comments

Comments

@nomis
Copy link
Contributor

nomis commented Aug 8, 2021

There is no default_port for the ws and wss schemes.

If the port is omitted, it works with HTTP::URI.parse but not when making requests:

irb(main):001:0> HTTP.get("ws://example")
Traceback (most recent call last):
        1: from (irb):1
NoMethodError (undefined method `default_port' for #<HTTP::URI:0x0056444e3e7798 URI:ws://example/>)
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

1 participant