files/en-us/web/api/rtcicetransport/gatheringstate/index.md
{{APIRef("WebRTC")}}
The gatheringState read-only property of the {{domxref("RTCIceTransport")}} interface returns a string that indicates the current gathering state of the ICE agent for this transport: "new", "gathering", or "complete".
You can detect when the value of this property changes by watching for an event of type {{domxref("RTCIceTransport/gatheringstatechange_event", "gatheringstatechange")}}.
Note that gatheringState represents the gathering state of just this transport, while {{domxref("RTCPeerConnection.iceGatheringState")}} represents the overall gathering state of the whole connection, including every {{domxref("RTCIceTransport")}} used by every {{domxref("RTCRtpSender")}} and every {{domxref("RTCRtpReceiver")}} on the entire connection.
A string that indicates the current state of the ICE agent's candidate gathering process:
"new"
"gathering"
"complete"
{{Specifications}}
{{Compat}}