Static
eventsComputes the commitment.
Builds and sends an error message to the target participant.
The target participant.
The error message.
Internal helper to send the given object to the given participant ID. This function merely exists so the transport can be easily swapped. Currently messages are transmitted via XMPP MUC private messages.
The data that will be sent to the target participant.
ID of the target participant.
Builds and sends the SAS MAC message to the given participant. The second phase of the verification process, the Key verification phase https://spec.matrix.org/latest/client-server-api/#short-authentication-string-sas-verification
Adds new cancellable listener.
the name of the event
the listener.
Alias for on method.
The event ID.
Handler for the event.
Adds new listener.
the name of the event
the listener.
Frees the olmData sessions for all participants.
Frees the olmData session for the given participant.
Emits an event.
event name
Starts new olm sessions with every other participant that has the participantId "smaller" the localParticipantId.
Returns the number of listeners for the specified event.
Optional
eventName: stringThe name of the event.
Sends sacMac if channel verification waas successful.
Removes event listener.
The event ID.
Optional
handler: EventListenerOptional, the specific handler to unbind.
Attaches a handler for events (e.g., "participant joined") in the conference. All possible events are defined in JitsiConferenceEvents.
The event ID.
Handler for the event.
Adds a one-time listener function for the event.
The event ID.
Handler for the event.
Removes all listeners for the event emitter.
Alias for off method.
The event ID.
Optional
handler: EventListenerOptional, the specific handler to unbind.
Removes listener.
the name of the event that triggers the listener
the listener.
Updates the current participant key.
The new key.
Static
isIndicates if olm is supported on the current platform.
This class implements an End-to-End Encrypted communication channel between every two peers in the conference. This channel uses libolm to achieve E2EE.
The created channel is then used to exchange the secret key that each participant will use to encrypt the actual media (see E2EEContext).
A simple JSON message based protocol is implemented, which follows a request - response model:
These requessts and responses are transport independent. Currently they are sent using XMPP MUC private messages.