Open Avadon opened 7 years ago
Greetings!
I initialise nChanSubscriber and listen for messages for a while and everything is OK. But after updating the page I receive all these messages again (no matter that in LocalStorage there is lastMessageId).
Here is my code:
const nchan = new NchanSubscriber(nChanUrl, { subscriber: 'longpoll', reconnect: 'persist', shared: true });
What should I change in order to get rid of this repetition?
Greetings!
I initialise nChanSubscriber and listen for messages for a while and everything is OK. But after updating the page I receive all these messages again (no matter that in LocalStorage there is lastMessageId).
Here is my code:
What should I change in order to get rid of this repetition?