-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement p2p based networking using
iroh-net
(#404)
This the start to run the networking connections over [iroh](https://github.com/n0-computer/iroh), allowing direct connections between players. ## General Architecture - The online matchmaking server does not proxy connections anymore, it only introduces players to each other. After that `iroh` connections are used (which are either direct or relayed, in all cases e2e encrypted) - The Lan and Online discovery services, only function as such, discovering other players, after this has happened, all work is passed to `Socket` which is the p2p version of transferring game state between players ## Testing it out There is a branch of `jumpy` using this, which can be used to try it out https://github.com/dignifiedquire/jumpy/tree/feat-iroh-networking ### Matchmaker Servers - Europe: `dkv5qztdu75wgtkyukkmhemz25adco7jrplzockgqgzvzl3d3z4q` - US: `tkj2gohdqx2fjqm24s6l6m7ehecntlcz72kzliwjy5ezs6yfdo6q ` ## Work to be done - [ ] browser, will likely have to be in some form of disabling this when running in wasm (for now) - [x] cleanup - [x] better error handling
- Loading branch information
1 parent
aecd998
commit 3cb6a88
Showing
22 changed files
with
3,692 additions
and
1,815 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.