-
Notifications
You must be signed in to change notification settings - Fork 54
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
wss connection issue with tubesock #101
Comments
Thanks for your report! Can you share the URL? Or some other URL where this happens? Is there any way you can print the complete stack trace and post it here? Or are you trying to use a self-signed certificate? #100 |
It seemed this was due to Server Name Indication (SNI) as part of SSL/TLS, which may not be supported by our WebSocket library. Can someone verify? |
SNI is not an issue, 'nv-websocket-client' works well where 'tubesock' can't |
Yes, presumably because "nv-websocket-client" does support SNI :) We'll offer a version of this library with "nv-websocket-client" instead of "TubeSock" in a separate branch so that everybody can test it and see if it works better. |
com.firebase.tubesock.WebSocketException: error while creating secure socket i am getting this exception while connecting my websocket so what is the solution |
@musriabhijit please send your connection URL and code |
in the sample code i am just changing my web socket with http://ec2-50-17-2-110.compute-1.amazonaws.com:3000/ so this is my url |
@musriabhijit Can you try changing |
if i use wss it is going to exception and disconnected so what is the solution for this |
@ daupawar i am also facing the same Issue as mention by you at first When i was trying to connect Secure layer with wss://myurl/websocket i am getting Meteor Exception error while creating secure socket error |
@musriabhijit I haven't made library, i downloaded whole code and changed build.gradle for nv-websocket. then i changed meteor.java file. |
you have changed the code in meteor.java file right can you send me that file so that i can use the same code i don't know how the meteor works in the back end to connect to meteor so i need the help from you if you send me the meteor.java file then it will be great help |
@musriabhijit send me your mail id |
To sum up, we've found out that TubeSock, which has been the underlying WebSocket component for this library, doesn't seem to support Server Name Indication (SNI) or self-signed certificates with SSL/TLS. Thus we decided it may be a good idea to switch to nv-websocket-client, which also proved to have more active support. Since we heard about it initially, that library has always been a promising alternative, but I wanted to watch it a little longer to see whether support for it continues. Now, let's finally attempt the switch between these two libraries. I've started the transition in ec33436 but this is an early draft. There may be bugs that we'll have to fix. There are many new possibilities for configuration and customization that we'll be able to use. So that implementation has to be completed and perhaps improved in some existing parts. If anybody has feedback on this implementation, especially given that some of you have already done this change in their private forks, I'd love to hear what you think. In order to try the new implementation, it will be sufficient to replace the version
Should you still be interested in this issue, @daupawar, @musriabhijit, @MathiasHH, @elbow, @vlasky, @isdzulqor and anybody else, your feedback will be much appreciated. Thanks! |
@ocram that would be great. I have been using 'nv-websocket-client' in forked code from last 3 months, I tried with different urls ('wss' and 'ws') and haven't found any issue with it. |
Oh, let's keep this open for now :) As explained above, I have changed the WebSocket library in this project as well. So hopefully, everyone can soon use this repository instead of their private forks again. For that to happen, I just need some feedback on the implementation. My previous comment explains how the implementation can be tested with your app. Since some of you have created their private forks, I'd also love to hear about how your code is different from ec33436 and whether we need some more changes for everything to work correctly, including SSL/TLS with SNI and self-signed certificates. |
Again, the following is the dependency for those who would like to test this library with the alternative WebSocket library that may replace the existing one:
|
ws and wss works for me. Thanks! |
Good day. Can you update nv-websocket-client to latest version, please? |
I am using a wss one with the following dependency: compile 'com.github.delight-im:Android-DDP:ec334366059f030c3ff73b66f154dcf5f333359c' and getting the following exception: com.neovisionaries.ws.client.WebSocketException: Failed to get the input stream of the raw socket: Connection closed by peer |
When i was trying to connect Secure layer with
wss://myurl/websocket
i am gettingMeteor Exception error while creating secure socket
errorSame url works with meteor ios lib in ios
so i replaced tubesock code with nv-websocket-client and now its working fine
The text was updated successfully, but these errors were encountered: