Suggestions

close search

Add Messaging, Voice, and Authentication to your apps with Vonage Communications APIs

Visit the Vonage API Developer Portal
Developer Documentation moved on August 7, 2026. Future updates are available only at → https://developer.vonage.com/en/opentok/overview

CpuPerformanceChangedEvent

Properties Methods 

The Session object dispatches a cpuPerformanceChanged event when the CPU performance state changes. The event is only dispatched on Chromium browsers (Chrome 125+, Edge 125+, and Opera 111+). Events are not dispatched after disconnecting from a session, but they resume after reconnecting.

Properties

Name Type Description
cpuPerformanceState String The new CPU performance state. The CPU performance state can be one the following: "nominal", "fair", "serious", or "critical". (See this W3C specification.)
See:

Methods

Name Description
isDefaultPrevented() → {Boolean} Whether the default event behavior has been prevented via a call to preventDefault() (true) or not (false).
preventDefault() Prevents the default behavior associated with the event from taking place.

isDefaultPrevented() → {Boolean}

Whether the default event behavior has been prevented via a call to preventDefault() (true) or not (false). See preventDefault().
Returns:

preventDefault()

Prevents the default behavior associated with the event from taking place.

To see whether an event has a default behavior, check the cancelable property of the event object.

Call the preventDefault() method in the callback function for the event.

The following events have default behaviors: