Installing the command-line executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install matchbox_server
It will make the matchbox_server command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall matchbox_server uninstalls.
Back to the crate overview .
Readme
Signaling Server
A lightweight signaling server with some opinions, to work with all examples .
Next rooms
This signaling server supports a rudimentary form of matchmaking. By appending ? next= 3 to the room id, the next three players to join will be connected, and then the next three players will be connected separately to the first three.
You can also use the room id for scoping what kind of players you want to match. i.e.: wss: // match.example.com/awesome_game_v1.1.0_pvp?next=2
Run
cargo run