-
Notifications
You must be signed in to change notification settings - Fork 976
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: ws #233
Comments
Ah, I didn't know |
Also the same problem with wss:// |
Can I wait this fix soon? |
I wanted t ofix it by myself but there're not all class in project |
Just use |
we use the websocket can connect wss:// , but use this library ,can't connect the "https://" , no any reponse,can you help ? |
+1, this is causing heavy issues on socket servers: losing a lot of CPU on back and forth requests upgrading the connexion. This is a major issue when you have a lot of conn/second |
+1 |
This is caused by java.net.URL not knowing how to open a connection towards a |
did it fix? |
are there any news on this? |
Maybe we could use this to resolve the issue |
We are using Socket.io 1.4.5 and this library on Android client. For connection string we are using IO.Options opts = new IO.Options();
opts.transports = new String[]{ WebSocket.NAME};
return IO.socket("https://socket.io.server", opts); |
@jvilya hi,I have tried your code above,but it doesn't work. |
@isanwenyu yes. Try to debug it with any proxy-debugging tool and see what happens |
2 Years later and still no fix? is this product no longer being supported? |
hello guys this ws: issue is fixed? |
any solution to implement |
Still not working and it is not connect with http:// . |
not working at all!!!!!!!!! |
after a year ... it still does not work |
no hope for this topic |
The socket server I'm connecting to only works with wss...any solutions for 2019? |
java.lang.RuntimeException: java.net.MalformedURLException: Unknown protocol: ws who know?how to fix it |
This doesn't fix the ws: issue. OkHttp just replaces ws: with http: before parsing the URL. |
from the
|
Idk if someone is still looking for an easy hot-fix, but I'll just leave it here.
|
Hi, I was able to solve this problem in this way:
|
Nothing here is working for me.. |
@Mohamed-Shalabi
|
For future readers: this should be fixed by 67fd5f3, included in version |
Thank you very mach!! I was using version very old and i was founding very problems with exception about "ws" and problems of connected to server with protocol "http" |
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
Hi. i try to connect to socket server which start with "ws://..." and when I set this url to
I receive error
The text was updated successfully, but these errors were encountered: