Validate outgoing stream signal envelopes and join notes before dispatch
This commit is contained in:
1 parent
335466b4a1
commit
dfb60d7b7c
4 files changed
+56
-4
No files matched your search
@@ -349,6 +349,7 @@ So: "is streaming" ⇔ the `notifystreaminfo` item has `id`.
|
||||
### 4.13 `stream_join` — `{stream_id: string, client_id: number, message?: string}`
|
||||
|
||||
Sends `joinstreamrequest id=<stream_id> clid=<client_id> msg=<message|our nickname> is_remove=0`.
|
||||
An explicitly supplied join message is single-line and at most 200 UTF-16 code units, as in the historical client contract.
|
||||
Result `{}` (or `server_error`). The SDP offer arrives as `stream` event
|
||||
`notifyrespondjoinstreamrequest` (`decision=1`, `offer=<sdp>`).
|
||||
|
||||
@@ -359,6 +360,7 @@ Examples of `json`: `{"cmd":"answer","args":{"answer":"<sdp>"}}`,
|
||||
`{"cmd":"iceCandidate","args":{"mLine":0,"mid":"0","sdp":"candidate:..."}}`.
|
||||
Publisher ICE restart responses use `{"cmd":"reconnectOffer","args":{"offer":"<sdp>"}}`.
|
||||
Shared core validation accepts only `answer`, `iceCandidate`, and `reconnectOffer`, never arbitrary signaling commands.
|
||||
The outbound envelope and its arguments reject additional fields. SDP descriptions allow tab and line breaks and are limited to 60000 UTF-16 units. ICE uses a nonnegative safe integer `mLine` and single-line strings `mid` (64 units) and `sdp` (2048 units). Incoming alias handling is separate.
|
||||
Max serialized `json` size 60 KiB (the whole stdin line is capped at 256 KiB). Result `{}` or `server_error`.
|
||||
|
||||
### 4.15 `stream_leave` — `{stream_id: string, client_id: number}`
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
## Возврат к разработке на ПК, 2026-11-26
|
||||
|
||||
Windows, база `335466b`: исходящие `stream_signal` и текст `stream_join` проверяются по схеме исторического клиента. Прошли четыре проверки ядра и два теста нативной сигнализации. Реальные WebRTC-пиры, изображение и звук этим прогоном не проверялись.
|
||||
|
||||
Windows, база `6ac0967`: семь тестов прошли для `chatUse24hTime` и связанных строк истории. Формат 12/24 ч меняется у загруженного сообщения и в журнале событий; после перезапуска исходная метка времени сохранена. Журнал проверен на русском и английском с тестовыми событиями.
|
||||
|
||||
Windows, база `4244adf`: расширенный тест чата на закрытом beta14 подтвердил видимый отказ гостю в серверном чате и сохранение черновика после ухода с вкладки и возврата. Личное и канальное сообщения доставлены. Успешную широковещательную отправку этот прогон не доказывает. Отдельно прошли три проверки валидации ядра.
|
||||
|
||||
Reference in new issue
Block a user