Batch request

17 views
Skip to first unread message

Maxim

unread,
Sep 7, 2023, 1:38:58 AMSep 7
to Tinode General
Hey, guys!
After requesting the subs, how can we attach to each topic by one request?

Maxim

unread,
Sep 7, 2023, 10:32:31 AMSep 7
to Tinode General
When user request sub after login. And wanna to attach on subs.
Currently I call sub->topic for each topic. Maybe can I send one the query for attach on all user subs?

четверг, 7 сентября 2023 г. в 10:38:58 UTC+5, Maxim:

Gene

unread,
Sep 7, 2023, 11:52:53 AMSep 7
to Tinode General
On Thursday, September 7, 2023 at 7:32:31 AM UTC-7 Maxim wrote:
When user request sub after login. And wanna to attach on subs.
Currently I call sub->topic for each topic. Maybe can I send one the query for attach on all user subs?

What's the use case for such action? Why do you need to load all topics at once?

What if the user has thousands of subscriptions?

Maxim

unread,
Sep 7, 2023, 12:25:02 PMSep 7
to Tinode General
When user logined we should attach on usr topics for got their presence? its correct logic? 


четверг, 7 сентября 2023 г. в 20:52:53 UTC+5, Gene:

Gene

unread,
Sep 7, 2023, 12:29:04 PMSep 7
to Tinode General
When the user signs in, he should attach to 'me' topic. It will announce his presence to other users and will provide him with the information on presence of other users and topics.

Maxim Bunkov

unread,
Sep 7, 2023, 12:32:34 PMSep 7
to tin...@googlegroups.com
Ouch ok!
--
You received this message because you are subscribed to the Google Groups "Tinode General" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinode+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tinode/fa1a14c7-9e46-46bb-88c6-1ec651f7542an%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages