readyState

The read-only RTCDataChannel property readyState returns a string which indicates the state of the data channel's underlying data connection.

MDN Reference