{
remoteConnection.addEventListener("iceconnectionstatechange", () => {
console.log("ICE connection state:", remoteConnection.iceConnectionState);
});
remoteConnection.addEventListener("icegatheringstatechange", () => {
console.log("ICE gathering state:", remoteConnection.iceGatheringState);
});
remoteConnection.addEventListener("icecandidateerror", (event) => {
console.error("ICE candidate error:", event);
});
}