Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

networking: Add optional version check for hosts/clients #7

Open
thomasboyt opened this issue Aug 15, 2018 · 0 comments
Open

networking: Add optional version check for hosts/clients #7

thomasboyt opened this issue Aug 15, 2018 · 0 comments

Comments

@thomasboyt
Copy link
Owner

web games have the potential for a lot of bugs around weird caching issues and out of date clients, so it'd be good to ensure clients and hosts have the same version

this could be a param added to either the connect() fn or the Networking component params:

new NetworkingHost({
  prefabs,
  maxClients: 2,
  version: "1"
});

implementation of the "version" should be left up to the games, but could be a SHA stamp from the git repo or something, or maybe webpack could handle hashing the bundle?

as for the actual check, client should send it on initial connect and server should send back a new VersionMismatchError message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant