Skip to content

feat: keep the candidates and channels a peer signalled - #20

Merged
NaySurGithub merged 1 commit into
mainfrom
feat/remote-candidates
Nov 12, 2026
Merged

NaySurGithub merged 1 commit into
mainfrom
feat/remote-candidates

Conversation

@NaySurGithub

Copy link
Copy Markdown
Contributor

A NetherNet connection now keeps two more things a peer sent while it connected, next to its offer and its join request:

  • getRemoteCandidates(): the ICE candidates it signalled after its offer, as received, a line each
  • getRemoteChannels(): the data channels it opened, in order: label, stream id and protocol, a line each

Both are capped (8 KiB and 1 KiB) and read under the connection's lock. A server that inspects connections can pass them on; nothing here judges them.

Checked by compiling the changed sources with the flags of Falcon's build. No test of its own: it needs a live peer connection.

AI disclosure

Written by Claude Fable 5.2 (code).

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