RTCPeerConnection: peeridentity event

This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

The peeridentity event is sent to the connection concerned when peer identity has been set and verified on it. The new identiy can be access using the RTCPeerConnection.peerIdentity property. An event handler for this event can be added via the RTCPeerConnection.onpeeridentity property.

Bubbles No
Cancelable No
Interface Event
Event handler property onpeeridentity

Important: This event and its event handler have been removed from the specification and are no longer available. Instead of using this event to detect when an identity is available, simply wait for the Promise returned by RTCPeerConnection.peerIdentity to be resolved. Once resolved, its value is the new identity.


For the correct way to detect a new peer identity, see RTCPeerConnection.peerIdentity.


Specification Status Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'peeridentity' in that specification.
Candidate Recommendation Ā 

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
peeridentity event
Chrome No support NoEdge No support ā‰¤18Ā ā€” 79Firefox Full support 22IE No support NoOpera Full support 43Safari ? WebView Android No support NoChrome Android No support NoFirefox Android Full support 44Opera Android Full support 43Safari iOS ? Samsung Internet Android Full support 6.0


Full support Ā 
Full support
No support Ā 
No support
Compatibility unknown Ā 
Compatibility unknown
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.

See also