I want my PlayCanvas app to communicate regularly with a server, uploading and downloading data. This should happen e.g. every 200 milliseconds (5 times per second). When data comes back from the server, I will update some global variables from these values.
Two questions about this:
- I thought I would do the communication via HTTP GET requests. Is this an OK approach or is there a better way to do server communication with PlayCanvas?
- How do I write a timer / scheduler that talks to the server e.g. every 200 ms?
Any pointers are appreciated. Thanks a lot in advance!