Skip to content

Feat/relay service mode#255

Draft
marcus-pousette-hp wants to merge 6 commits into
feat/relay-connection-reusefrom
feat/relay-service-mode
Draft

Feat/relay service mode#255
marcus-pousette-hp wants to merge 6 commits into
feat/relay-connection-reusefrom
feat/relay-service-mode

Conversation

@marcus-pousette-hp

@marcus-pousette-hp marcus-pousette-hp commented May 12, 2026

Copy link
Copy Markdown
Contributor

Stacked on #252.

Adds a first-class relay service API for apps/users that explicitly opt in to relaying.

  • Adds dht.createRelayServer()
  • Documents relay.listen(), relay.publicKey, relay.on('session'), and relay.close()
  • Adds relay.close({ force: true }) for app/user settings flows where relay mode is disabled and active relay sessions should be torn down immediately

This does not add relay discovery or global relay advertisement. Peers still explicitly choose this relay with relayThrough.

@marcus-pousette-hp marcus-pousette-hp force-pushed the feat/relay-service-mode branch from a824617 to b0ef0f2 Compare May 12, 2026 13:21
@marcus-pousette-hp marcus-pousette-hp force-pushed the feat/relay-connection-reuse branch 2 times, most recently from 7f2025a to c7170b8 Compare May 12, 2026 21:11
@marcus-pousette-hp marcus-pousette-hp force-pushed the feat/relay-connection-reuse branch from e4c2908 to 18376ef Compare July 6, 2026 12:17
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