The existing code will ensure that it=foo results in RTCConfiguration.iceTransports = foo. Now, since iceTransports doesn't work in existing versions of Chrome, if it=relay, we can simulate the desired behavior by eating all non-relay candidates.

So what we should do is check if the iceTransports value that currently exists is set to 'relay', and if so, eat non-relay candidates.