How is data synchronized in real time in the examples?
Data, such as shared photos, vote counts, and drawing points, is synchronized through Firebase, which serves as a backend/server and has built-in sockets.
The functions that include Firebase setup are in p5moLibrary.