ThePhotons
I fixed the issue with my game's browser version not working!
The "protocol" was set to ws and not to wss... Just found out while browsing this forum. When should I use ws and when wss? Can I just let it at wss, or are there certain exports that are not compatible?
Another small question:
When I used high code numbers in the "raise event" like 2000+, the events would not be called at all. Is there a pattern, or should I use the lowest amount of numbers?
Also, is it better to use many raise events for different things, or should I use only one or two raise events, that store most of the data in them?
I think wss is for https and ws is for http. So if the game is played on https://website.com, then choose wss.
If I remember correctly the possible event numbers are 1-250 (meaning, that you can only use those). Someone correct me, if wrong.
As for the last question... I personally use both methods (token thingies and separate events), but not sure which is more efficient.