title: How to assure reliable message delivery of websockets?
body: <p>I am developing a simple server whose primary task is to push notifications to users like a typical <code>Push Notification Server</code>. I have used <code>java websockets</code> for pushing the notification to the users through websocket session. While developing the same I have a list of some requirements in which <em>reliable message delivery</em> is one of the requirement.</p>
  
  <p>I am pushing the notification to particular user like below,</p>
  
  <pre><code>session.getBasicRemote().sendObject(notification);
  </code></pre>
  
  <p>but above method returns <code>void</code>, thats why I am not able to conclude whether the notification is delivered to the other end or not.
  One of the option was, intended user will send feedback to my server for the same notification and I will mark the same notification as delivered successfully. But it could cause a increase in network traffic.</p>
  
  <p>Is there any standard way to make sure that the notification is delivered successfully while sending it through <em>websocket session</em></p>