WebRTC samples Peer connection: states

PC1 signaling state:
PC1 ICE state:
PC1 connection state:
PC2 signaling state:
PC2 ICE state:
PC2 connection state:

View the console to see logging. The MediaStream object localStream, and the RTCPeerConnection objects pc1 and pc2 are in global scope, so you can inspect them in the console as well.

For more information about RTCPeerConnection, see Getting Started With WebRTC.

View source on GitHub