Skip to content

feat: direct mode for homes with several coordinators (4.2.0) - #53

Merged
Mathieu2301 merged 1 commit into
mainfrom
nox/direct-multi
Nov 15, 2026
Merged

Mathieu2301 merged 1 commit into
mainfrom
nox/direct-multi

Conversation

@Mathieu2301

Copy link
Copy Markdown
Member

Direct mode no longer requires a single coordinator: the browser aggregates one direct channel per coordinator (re-keyed dictionaries, routed calls, fanned-out reauth), goes direct only when all answer, and opens partially without the relay. Also fixes a possible native abort when closing from a callback. End-to-end tests (two coordinators, one down) under Node in bun run check.

The browser opens one direct channel per coordinator and aggregates them
the way the relay does: one WELCOME, state and function dictionaries
re-keyed by name, calls routed to the declaring coordinator, reauth fanned
out. Direct only when every coordinator answers, the relay otherwise;
without the relay, the home opens with those that answer. The store now
keeps the home's coordinator list and one record each (4.1 records are
read as before).

Native WebRTC objects are no longer closed from inside their own
callbacks, which could abort the process. The end-to-end direct tests run
under Node. CLI 4.3.3 guide: every coordinator must run miakapi 4.1+.
@Mathieu2301
Mathieu2301 merged commit aaaa6f0 into main Nov 15, 2026
1 check passed
@Mathieu2301
Mathieu2301 deleted the nox/direct-multi branch November 15, 2026 03:40
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