I have written android app which connects to a websocket server, server app and android app implemented with Autobahn websocket library.
I can connect and exchange the messages with server successfully. but after some time(after 20 - 30 mins) android app stop communicating with server(it cannot send messages to server). On logcat shows app still connect to websocket even though it cannot send messages to server.
I have went through the source code of Autobahn library and found that it using java.nio.channels.SocketChannel to connect to the websocket. Are there any issue in using SocketChannels? (I found similar issue from here Android - How to keep connection with server for a long time)