+function handleIceRequest(msg) {
+ console.log('Host: Sending ice candidate to client')
+ const hpc = clients.get(msg)
+ const iceCandidates = iceCandidates.pop()
+ if (iceCandidate !== undefined) {
+ wsock.send(iceCandidate)
+ } else {
+ wsock.send('no ice candidates')
+ }
+
+}