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

java.net.MalformedURLException: unknown protocol: wss #650

Closed
aminrz3 opened this issue Jan 28, 2021 · 2 comments
Closed

java.net.MalformedURLException: unknown protocol: wss #650

aminrz3 opened this issue Jan 28, 2021 · 2 comments
Labels
Milestone

Comments

@aminrz3
Copy link

aminrz3 commented Jan 28, 2021

According to the documentation, there is no problem in using the WSS protocol

Socket socket = IO.socket("wss://example.com"); // OK, similar to the example above

But when I use it, it gives the following error:
java.lang.RuntimeException: java.net.MalformedURLException: unknown protocol: wss

Socket mSocket = IO.socket("wss://mydomain.com");

please help me

@zhoukp616
Copy link

use https://mydomain.com instead of wss://mydomain.com

darrachequesne added a commit that referenced this issue Apr 26, 2021
The URL constructor does not support the ws:// scheme, and would throw:

> java.net.MalformedURLException: unknown protocol: ws

Related:

- #650
- #555
- #233
@darrachequesne
Copy link
Member

For future readers: this should be fixed by 67fd5f3, included in version 2.0.1.

@darrachequesne darrachequesne added this to the 2.0.1 milestone Jan 12, 2022
darrachequesne added a commit that referenced this issue Jul 10, 2022
The URL constructor does not support the ws:// scheme, and would throw:

> java.net.MalformedURLException: unknown protocol: ws

Related:

- #650
- #555
- #233

Backported from 67fd5f3
cedev935 added a commit to cedev935/socket-java that referenced this issue Sep 14, 2023
The URL constructor does not support the ws:// scheme, and would throw:

> java.net.MalformedURLException: unknown protocol: ws

Related:

- socketio/socket.io-client-java#650
- socketio/socket.io-client-java#555
- socketio/socket.io-client-java#233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants