Closed NiiightmareXD closed 5 months ago
I don't plan to implemented this myself any time soon but seeing how some channels now must be polled or you won't get updates, we'll likely need some sort of client.watch
method, yes.
Probably doing something similar as how this method is used: https://github.com/Lonami/grammers/blob/6e13715cf3b6bb35a502fc441b1821dba7bd238a/lib/grammers-session/src/message_box/mod.rs#L806
Can I implement this? 🤔
You could. But I don't know how I want it to look. Some rough ideas:
watch
never returns and one is expected to drop the future when one is no longer interested. Updates are put in the same queue.next_updates
more complicated if we don't want duplicates there (as it would need to filter out "what is being watched").Leaning towards the first version, but that might not be the best.
Closing this for now. I'm still not sure how this should work, but happy to reopen if interest comes up again.
Hello, I have been testing the latency of the messages by using the 'date' function. I have noticed that there is always a delay of approximately 3 seconds between the time I send the message and the time it appears. Is there any way to refresh the messages manually to eliminate this delay?