title: Android and Java Ping/Pong Web Socket functionality
body: <p>I have developed and Android application with is connecting to JAVA Web Socket and basically it is working very well.
  The issue is, that sometimes the client is disconnected but connection at the server side is appearing to be connected.</p>
  
  <p>I try to investigate, when and why it happened but unfortunately i could not find the a specific scenario that cause to this problem.</p>
  
  <p>I have thought to implement Ping/Pong messaging between server and all clients and in case that there is no answer from the clients is to closed the connection at the server side.</p>
  
  <p>i can easily implement such my private mechanism but I have read around and I understand that Java and Android has an build in Ping/Pong messaging mechanism but i was not able to find any example of that.</p>
  
  <p>Can anyway, provide a simple example how to implement Ping/Pong messaging functionality using the build in tools?</p>