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

Embed HTTP Server Into Game Binary #74

Open
billyb2 opened this issue Nov 24, 2021 · 0 comments
Open

Embed HTTP Server Into Game Binary #74

billyb2 opened this issue Nov 24, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers net Networking code stuff

Comments

@billyb2
Copy link
Owner

billyb2 commented Nov 24, 2021

Currently, in order to start a multiplayer game, players must set up an HTTP server and then connect to it, as well as dealing with HTTP header stuff. This takes a moderate amount of technical skill, which can be frustrating to end users. By embedding an HTTP server into the game's binary, and just having some text when hosting a game saying Tell your friends to point their web browsers to {SERVER_IP}:4000, it would make the game significantly easier to play at little cost. We could legitimately just set up a TCP server, no dependencies needed, as no matter what we're only going to be loading like 3 files total. We would, of course, want to embed the index.html file using include_str, and make sure users can't get remote file system access to any file, only specific hardcoded ones.

@billyb2 billyb2 added enhancement New feature or request good first issue Good for newcomers labels Nov 24, 2021
@billyb2 billyb2 added the net Networking code stuff label Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers net Networking code stuff
Projects
None yet
Development

No branches or pull requests

2 participants