mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
/video signaling proxy and a global public server http path config item
This commit is contained in:
@@ -59,7 +59,7 @@ function pollIntervalMs() {
|
||||
}
|
||||
|
||||
function ownPublicUrl() {
|
||||
return normalizeBaseUrl(interInstanceConfig.profile?.publicUrl);
|
||||
return normalizeBaseUrl(loadConfig().publicUrl);
|
||||
}
|
||||
|
||||
function ownInstanceId() {
|
||||
@@ -486,6 +486,15 @@ registerConfigurationHandler('interInstance', (nextConfig = {}) => {
|
||||
startPolling();
|
||||
});
|
||||
|
||||
registerConfigurationHandler('publicUrl', () => {
|
||||
/*
|
||||
The canonical URL participates in self-filtering as well as the published
|
||||
profile. Start a fresh generation immediately so results from an in-flight
|
||||
poll using the former identity cannot be committed afterward.
|
||||
*/
|
||||
startPolling();
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
getState,
|
||||
interInstanceEvents,
|
||||
|
||||
Reference in New Issue
Block a user