export declare class DAVESession extends EventEmitter
Manages the DAVE protocol group session.
string channelId :
The channel id represented by this session.
number protocolVersion :
The protocol version being used.
boolean reinitializing :
Whether this session is currently re-initializing due to an invalid transition.
SessionMethods | undefined session :
The underlying DAVE Session of this wrapper.
string userId :
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
destroyvoid () :
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
processCommitpayload: 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
processWelcomepayload: 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.
reinitvoid () :
Re-initializes (or initializes) the underlying session.