Skip to content

Commit 0860e4d

Browse files
authored
small update for binary seq numbers (#7156)
1 parent f674212 commit 0860e4d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/topics/Voice_Connections.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ When a call is E2EE, all members of the call exchange keys via a [Messaging Laye
219219

220220
To reduce overhead, some of the new DAVE protocol opcodes are sent as binary instead of JSON text. See the binary column in the [Voice Opcodes Table](#DOCS_TOPICS_OPCODES_AND_STATUS_CODES/voice) to identify these opcodes. Binary websocket messages have the following format:
221221

222-
| Field | Description | Size |
223-
|-----------------|---------------------------------------------------------------|----------------|
224-
| Sequence Number | OPTIONAL unsigned integer sequence number for buffered resume | 2 bytes |
225-
| Opcode | Unsigned integer opcode value | 1 bytes |
226-
| Payload | Binary message payload (format defined by opcode) | Variable bytes |
222+
| Field | Description | Size |
223+
|-----------------|--------------------------------------------------------------------|----------------|
224+
| Sequence Number | OPTIONAL (server -> client only) big-endian uint16 sequence number | 2 bytes |
225+
| Opcode | Unsigned integer opcode value | 1 bytes |
226+
| Payload | Binary message payload (format defined by opcode) | Variable bytes |
227227

228-
Sequence numbers are only sent from the server to the client. Whether the sequence number is included depends on the opcode. Currently all server-sent binary opcodes require the sequence number. See [Resuming Voice Connection](#DOCS_TOPICS_VOICE_CONNECTIONS/resuming-voice-connection) for further details on how sequence numbers are used when present.
228+
Sequence numbers are only sent from the server to the client, and all server-sent binary opcodes require the sequence number. See [Resuming Voice Connection](#DOCS_TOPICS_VOICE_CONNECTIONS/resuming-voice-connection) for further details on how sequence numbers are used when present.
229229

230230
### Indicating DAVE Protocol Support
231231

0 commit comments

Comments
 (0)