Voice Gateway JSON payload builders (v8).
Voice Gateway opcodes:
- 0: IDENTIFY
- 1: SELECT_PROTOCOL
- 3: HEARTBEAT
- 5: SPEAKING
- 7: RESUME
Summary
Functions
Builds a DAVE_MLS_COMMIT_WELCOME payload (OP 28).
Builds a DAVE_MLS_INVALID_COMMIT_WELCOME payload (OP 31).
Builds a DAVE_MLS_KEY_PACKAGE payload (OP 26).
Builds a DAVE_READY_FOR_TRANSITION payload (OP 23).
Builds a HEARTBEAT payload with the given nonce and seq_ack.
Builds an IDENTIFY payload for voice gateway authentication.
Builds a RESUME payload for reconnecting to the voice gateway.
Builds a SELECT_PROTOCOL payload with our IP discovery results and encryption mode.
Builds a SPEAKING payload.
Functions
Builds a DAVE_MLS_COMMIT_WELCOME payload (OP 28).
Per DAVE spec this opcode is sent as a binary frame:
<<28, commit::binary, welcome::binary>> where welcome is optional.
Builds a DAVE_MLS_INVALID_COMMIT_WELCOME payload (OP 31).
Sent when the client cannot process a commit or welcome, triggering the gateway to remove and re-add the member.
Builds a DAVE_MLS_KEY_PACKAGE payload (OP 26).
Per DAVE spec this opcode is sent as a binary frame:
<<26, mls_key_package::binary>>.
Builds a DAVE_READY_FOR_TRANSITION payload (OP 23).
Confirms to the gateway that the client is ready for the protocol/epoch transition.
Builds a HEARTBEAT payload with the given nonce and seq_ack.
Builds an IDENTIFY payload for voice gateway authentication.
When dave_version is > 0, includes DAVE protocol negotiation using
max_dave_protocol_version.
Builds a RESUME payload for reconnecting to the voice gateway.
Builds a SELECT_PROTOCOL payload with our IP discovery results and encryption mode.
Builds a SPEAKING payload.
Flags:
- 1: Microphone (normal voice)
- 2: Soundshare (go live / screen share audio)
- 4: Priority speaker