personal modifications in the TLS setupWhat are those modifications?
Since the android doesn't support some elliptic curves, I'm using the BouncyCastle to do the work. But this is not general. It's very specific for my project.
Can't you use a custom SSLContext to use BouncyCastle for TLS?
The notifyConnectionError I use in my custom PingFailedListener:Why don't you just install a ping failed listener and shut down the connection when it's called?
If I shutdown the connection, the ReconnectionManager will not try to reconnect again (the done flag will be true).