Re:Show HN: Nchan – a pub/sub server as an Nginx module
by thesmart on Sunday December 06, 2015 @04:26PM
(#10686695)
Does Nchan broadcast messages that may have been missed by a client that was temporarily offline? When web client's navigate from page-to-page or enter sleep mode, client's will miss messages during the offline delta. Ideally, there would be a way to "catch-up" a client or to tell if a client is permanently out-of-sync because it is beyond a message history window.
[ Parent
| on HN ]
Re:Show HN: Nchan – a pub/sub server as an Nginx module
by slact on Sunday December 06, 2015 @05:15PM
(#10686906)
Yes. All messages are buffered for a configurable length of time. Longpoll and EventSource clients receive the last message id with each message, and if interrupted can be resumed from there provided the message has not timed out. I don't yet have a way of transferring the last-received message id for websocket clients, but if it is known it can be set during the ws handshake.