I am building a comet service which will push new data to the client on mobile devices. For this, I am using websockets to deliver messages to the client.
The problem I am facing here is the reliable delivery of a message to the client. How can I be sure that the data I sent over the websocket was actually received by the client?
Proposed solutions:
- Sending a custom ack from the client and block other messages till then.
- Sending a hint to the client about the new data and let it fetch the data by itself.