Repository navigation
feat: direct mode for homes with several coordinators (4.2.0) - #53
Merged
Merged
Conversation
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+.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.