Merge pull request #1155 from ryanblenis/qol

1. Add latency timer and callback opportunity to CreateAgentRedirect
This commit is contained in:
Ylian Saint-Hilaire
2020-04-14 01:26:22 -07:00
committed by GitHub
3 changed files with 29 additions and 2 deletions

View File

@@ -1912,6 +1912,10 @@ function createMeshCore(agent) {
if (sdp != null) { ws.write({ type: 'answer', ctrlChannel: '102938', sdp: sdp }); }
break;
}
case 'latency': {
ws.write({ type: 'latency', ctrlChannel: '102938', time: obj.time });
break;
}
}
}