/* Poll server for ice candidates until ice is complete */
function pollServerForICECandidate(cpc) {
window.setInterval(() => {
/* Poll server for ice candidates until ice is complete */
function pollServerForICECandidate(cpc) {
window.setInterval(() => {
return new Promise((resolve, reject) => {
console.log('Client: Requesting ICE Candidates from server')
const request = new XMLHttpRequest()
return new Promise((resolve, reject) => {
console.log('Client: Requesting ICE Candidates from server')
const request = new XMLHttpRequest()