openvibers/openvibe.live Commits
Live's bell is realtime too: the shell initialises OpenVibeNotifications itself (before the shared navbar, which then leaves it alone), so the navbar's notificationsRealtime (13525eb) never reached it. The shell's init now passes realtime: true. Found with a signed-in browser check: Blog's bell opened a stream, Live's stayed on polling.
Changes
@@@ -1050,6 +1050,7 @@ document.addEventListener('DOMContentLoaded', function initOpenVibeNetwork() {apiBase: openvibeToolsBase,soundBase: '/assets/sounds',swPath: '/openvibe-sw.js',++ realtime: true, // new notifications over OpenVibe.Events, polling as the fallback (Shared 1.22.0)});OpenVibeNotifications.__ovNavInit = true; // the shared navbar mounts (and re-mounts) the bell itselfif (!mount.childElementCount) mount.appendChild(OpenVibeNotifications.createBell());
@@ -1050,6 +1050,7 @@ document.addEventListener('DOMContentLoaded', function initOpenVibeNetwork() {
@@ -1050,6 +1050,7 @@ document.addEventListener('DOMContentLoaded', function initOpenVibeNetwork() {
apiBase: openvibeToolsBase,
apiBase: openvibeToolsBase,
soundBase: '/assets/sounds',
soundBase: '/assets/sounds',
swPath: '/openvibe-sw.js',
swPath: '/openvibe-sw.js',
+ realtime: true, // new notifications over OpenVibe.Events, polling as the fallback (Shared 1.22.0)
});
});
OpenVibeNotifications.__ovNavInit = true; // the shared navbar mounts (and re-mounts) the bell itself
OpenVibeNotifications.__ovNavInit = true; // the shared navbar mounts (and re-mounts) the bell itself
if (!mount.childElementCount) mount.appendChild(OpenVibeNotifications.createBell());
if (!mount.childElementCount) mount.appendChild(OpenVibeNotifications.createBell());