9

Im trying to connect to WSS (client+server certificate authentication + Corporate Proxy Authentication+Self Signed Certificate Chain) from Android.

I tried Autobhan library, Koush AsyncIO, SecureWebSocket, Autobahn library with TLS support And few other.

I could not get it working.

Any suggestions on support library or least possible alterations to my server configuration to make it work (Https mandatory) ?

Prasad.CH
  • 492
  • 1
  • 5
  • 25
  • Our SecureBlackbox should do the job. Your question is offtopic according to current SO rules. – Eugene Mayevski 'Callback Apr 29 '14 at 18:29
  • @Eugene, My question is genuine question after my trails and I'm not asking any opinions or something. As per my knowledge it's valid. How am I going off topic here? – Prasad.CH Apr 30 '14 at 01:55
  • The questions to recommend a library or a tool are off-topic now. It's just a note, I am not a moderator. – Eugene Mayevski 'Callback Apr 30 '14 at 03:06
  • 2
    That's a silly thing to be 'off topic' often times one cannot discern by Google alone what the best library for a task might be. It is useful to get input from people who have used it and SO has always been a great forum for such opinions. – Andrew G May 05 '14 at 17:31
  • 4
    I love off topic questions, they usually have the answers I need, even if the so-called 'experts' don't think I need them. – Shoerob Nov 07 '14 at 16:04
  • 2
    1000+ views. Still no valid Answer? – Prasad.CH Jan 20 '15 at 05:59
  • In this case it is not off topic IMHO. The writer is saying that no library works and it needs to know one that works. – mgiammarco Nov 03 '15 at 19:50
  • this is ws/wss socket from firebase https://github.com/firebase/TubeSock – ant Jan 03 '16 at 18:05

3 Answers3

8

Did you try https://github.com/TooTallNate/Java-WebSocket

I haven't used it myself, but it looks promising.

Benito Ciaro
  • 1,718
  • 12
  • 25
3

Just recently discovered this library (nv-websocket-client). The best websocket client library for Android and Java so far. It supports WSS and RFC 7692.

Arsenius
  • 4,972
  • 4
  • 26
  • 39
  • There is a problem with that library. It does not detect when the server side connection goes down in order to call the onDisconnected method on the client – james04 Oct 22 '20 at 15:47
1

I am using Tyrus library. It works but only on Android 4. On Android 5 it hits a bug in Android. The bug happens only on ssl connections.

mgiammarco
  • 371
  • 5
  • 16
  • 1
    You can find a list of WebSocket libraries for Android here: [Which WebSocket library to use in Android app?](http://stackoverflow.com/questions/30547517/which-websocket-library-to-use-in-android-app) – Takahiko Kawasaki Nov 09 '15 at 21:12