Add stun/turn info after onIceCandidate
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
a4bc4b4d3b
commit
25e4b45198
@ -103,6 +103,17 @@ const MediaAgent = () => {
|
||||
if (!event.candidate) {
|
||||
return;
|
||||
}
|
||||
/* If a srflx candidate was found, notify that the STUN server works! */
|
||||
if (event.candidate.type === "srflx"){
|
||||
console.log("The STUN server is reachable!");
|
||||
console.log(` Your Public IP Address is: ${event.candidate.address}`);
|
||||
}
|
||||
|
||||
/* If a relay candidate was found, notify that the TURN server works! */
|
||||
if (event.candidate.type === "relay"){
|
||||
console.log("The TURN server is reachable !");
|
||||
}
|
||||
|
||||
sendMessage({
|
||||
type: 'relayICECandidate',
|
||||
config: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user