~.dave
DAVE
DAVETransition
dataclass
DAVEManager
DAVEManager(gateway: VoiceGateway)
Manages DAVE protocol operations.
Create a DAVE protocol manager.
| PARAMETER | DESCRIPTION |
|---|---|
gateway
|
The voice gateway connection.
TYPE:
|
session
property
session: davey.DaveSession | None
Get the current DAVE session.
voice_privacy_code
property
voice_privacy_code: str | None
Get the voice privacy code for the current group.
parse_frame
staticmethod
Parse a DAVE frame into a sequence, opcode, and payload.
| PARAMETER | DESCRIPTION |
|---|---|
frame
|
The raw payload from the gateway.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
tuple[int, Opcode, bytes]
|
The sequence, operation code, and payload from the frame. |
| RAISES | DESCRIPTION |
|---|---|
GatewayError
|
If the frame was too short to parse. |
decrypt
encrypt_opus
get_verification_code
handle_commit
async
handle_commit(payload: bytes) -> None
Handle an announced MLS commit.
| PARAMETER | DESCRIPTION |
|---|---|
payload
|
The serialized commit data.
TYPE:
|
handle_execute_transition
async
handle_execute_transition(transition_id: int) -> None
Handle execution of a prepared transition.
| PARAMETER | DESCRIPTION |
|---|---|
transition_id
|
The transition identifier.
TYPE:
|
handle_prepare_epoch
async
handle_prepare_transition
async
handle_proposals
async
handle_welcome
async
handle_welcome(payload: bytes) -> None
Handle an MLS welcome message.
| PARAMETER | DESCRIPTION |
|---|---|
payload
|
The raw payload including transition_id.
TYPE:
|