I want to generate some random circles, which are moving in real time on the canvas, and make sure every user see the same thing.
But i have no clue. how to make sure it is the same? Do i need to store data?
I suppose it might need to use socket.io?
Many thanks.
You could get a string representation of the circles by converting them to a base64 (dataUri) string and simply broadcasting the string to users with socket.io.
Most of the node canvas libraries have this method (toDataUri) built in, so it should be fairly straight forward.