Answer the question
In order to leave comments, you need to log in
How to consolidate data of multiple senders through PubSub?
Several servers publish their local data to the PubSub channel, which must be consolidated and the aggregated result reported to the local clients connected to each of the servers.
For example, voting yes two options: A and B. Three servers c1, c2, c3. At the end of the voting time, each server must show its clients the total voting data. Each server first "knows" only its own data:
. А Б
с1 11 22
с2 3 4
с3 55 66
Promise.all([s1, s2, s3]).then(...)
Each server in the message is "represented" - from whom the data. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question