Skip to content

Embed HTTP Server Into Game Binary #74

Description

@billyb2

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or requestgood first issueGood for newcomersnetNetworking code stuff

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions