Fixed bug in connection logic.
This commit is contained in:
1 parent
5c4ebb81d7
commit
f08fdbeda9
7 files changed
+106
-7
No files matched your search
+8
-1
@@ -35,6 +35,13 @@ Private test certificates are generated in memory, never distributed. No Windows
|
||||
NVDA process, standalone add-on or Orca plugin has been run against this code.
|
||||
Live captured fixtures and versioned interoperability results remain required.
|
||||
|
||||
A fresh random-channel probe against nvdaremote.com confirmed that its successful
|
||||
join reply includes the joining client's ID in `origin`. This matches
|
||||
[NVDARemote/remote-server Channel.add_client](https://github.com/NVDARemote/remote-server/blob/master/server.py).
|
||||
The embedded NVDA server omits that field. Transport regression tests cover both
|
||||
variants, both roles, and either peer connection order. This relay probe does not
|
||||
establish live NVDA speech, keyboard or Braille interoperability.
|
||||
|
||||
## Framing and validation
|
||||
|
||||
TLS is mandatory. Each frame is a UTF-8 JSON object followed by LF. A relay frame
|
||||
@@ -51,7 +58,7 @@ messages; they never include channel keys, remote output or server text.
|
||||
| Message | Implemented representation and limits |
|
||||
| --- | --- |
|
||||
| `protocol_version`, `join` | Outbound authentication only: version 2, channel and `connection_type` of `master` or `slave`. |
|
||||
| `channel_joined` | Matching channel required. Missing `clients` means empty. A maximum of 16 peers may be parsed; session policy accepts at most one. `user_ids`, if present, must exactly match typed peers. Nonempty legacy IDs without roles fail. The echoed key is removed from returned membership. |
|
||||
| `channel_joined` | Matching channel required. Missing `clients` means empty. A maximum of 16 peers may be parsed; session policy accepts at most one. `user_ids`, if present, must exactly match typed peers. Nonempty legacy IDs without roles fail. The echoed key is removed from returned membership. Public relay `origin` identifies this client and must differ from all peers; the embedded NVDA relay omits it. |
|
||||
| `client_joined`, `client_left` | Typed `client` requires positive `id` and known `connection_type`. Optional `user_id` must agree. ID-only legacy membership is unsupported. |
|
||||
| `speak` | Up to 1,024 sequence entries. Strings preserve whitespace and order. Numeric priority 0, 1 or 2; absence defaults to 0. Null and string priorities fail. |
|
||||
| `cancel`, `pause_speech` | Typed cancel or required boolean `switch`. No output backend is called. |
|
||||
|
||||
Reference in new issue
Block a user