export declare class DAVESession extends EventEmitterManages the DAVE protocol group session.
channelId : string
The channel id represented by this session.
protocolVersion : number
The protocol version being used.
reinitializing : boolean
Whether this session is currently re-initializing due to an invalid transition.
session : SessionMethods | undefined
The underlying DAVE Session of this wrapper.
userId : string
The user id represented by this session.
Decrypt a packet using end-to-end encryption.
Returns: The decrypted packet, or null if the decryption failed but should be ignored
destroy() : void
Resets the session.
Gets the verification code for a user in the session.
prepareEpoch() : void
Prepare for a new epoch.
prepareTransition() : boolean
Prepare for a transition.
Returns: Whether we should signal to the voice server that we are ready
processCommit(payload: Buffer) : TransitionResult
Processes a commit from the MLS group.
Returns: The transaction id and whether it was successful
Processes proposals from the MLS group.
Returns: The payload to send back to the voice server, if there is one
processWelcome(payload: Buffer) : TransitionResult
Processes a welcome from the MLS group.
Returns: The transaction id and whether it was successful
Recover from an invalid transition by re-initializing.
reinit() : void
Re-initializes (or initializes) the underlying session.