yuhuanq / Club-Caml

STOMP IM Client/Server
MIT License
2 stars 0 forks source link

Fetching missed messages #5

Closed yuhuanq closed 7 years ago

yuhuanq commented 8 years ago

if USER is SUBBED to a Durable topic, then when USER disconnects and then connects X minutes later, SERVER will send the missed messages.

Will probably need to impl ACK frames to support this. Each connection will have some n number of UNACKED/PENDING ACK's and that will the the number of missed messages. So then on Accept_connection for the client, send the last n messages.