Skip to content

Rooms by join code over Atyha (ngnet), optional password; no master signalling - #44

Merged
itxtoledo merged 1 commit into
mainfrom
feat/atyha-rooms
Nov 30, 2026
Merged

itxtoledo merged 1 commit into
mainfrom
feat/atyha-rooms

Conversation

@itxtoledo

Copy link
Copy Markdown
Contributor

Replaces #41, which predates the port onto ngnet (#38): the features now live in ngnet (ngspades/ngnet#5, merged) and this is the server's side.

  • common/ngnet → d5132ff: rooms over Atyha's public relays, WebRTC direct for browsers on listed servers, the master as a list only (no long poll, no offers), 8-symbol codes, ngspades:// links.
  • Online.c: join_code, join_password (SP_JOIN_PASSWORD), room_app; a private listen server is never announced; a room's offer (no address yet) skips the ban check, which ngnet repeats at connect with the real address.
  • Main.c: --join-code by ngnet's rule.
  • libsodium in CI and the release builds (Ubuntu, macOS, Alpine, MSYS2, server_deps_macos.sh).

Checked locally: build (Release), and ngnet's own tests (room with right/wrong password, refusal, direct join, e2e against the list-only master). The full game test (client joins a room, browser joins direct) is in the paired client PR. This PR runs CI.

…r signalling

common/ngnet moves to d5132ff (ngspades/ngnet#5): a listen server's join
code opens the match's room on Atyha's public Nostr relays, browsers join
a listed server by WebRTC direct, and the master is a list only.

- Online.c: join_code, join_password (SP_JOIN_PASSWORD, from the host's
  client, never the command line) and room_app go to ngnet; a private
  listen server is never announced (unlisted), with or without a code; a
  room's offer has no address yet (ngnet asks again at connect, for bans);
  the 6-letter code's log line is gone (ngnet logs "Room <code> open").
- Main.c: --join-code is read by ngnet's rule (8 symbols, ngspades://).
- libsodium, now a dependency (Atyha): CI (Ubuntu, macOS), the Alpine and
  MSYS2 release builds and server_deps_macos.sh (1.0.20, static).
@itxtoledo
itxtoledo merged commit 1944ac2 into main Nov 30, 2026
2 checks passed
@itxtoledo
itxtoledo deleted the feat/atyha-rooms branch November 30, 2026 22:34
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

Successfully merging this pull request may close these issues.

1 participant