openvibers/openvibe.chat Commits
The notification bell hears new notifications as they happen (notificationsRealtime; Shared 1.22.0, roadmap WS-E task 3): Network's network.notification.created over OpenVibe.Events' realtime stream, with polling as the fallback. Only a signed-in bell with a Network token opens a stream.
Changes
@@@ -51,6 +51,7 @@ function navConfig(o, config) {sessionUrl: '/auth/me',loginUrl: `/auth/login?next=${encodeURIComponent(o.path || '/')}`,logoutUrl: '/auth/logout?next={path}',++ notificationsRealtime: true, // the bell hears new notifications over OpenVibe.Events (Shared 1.22.0)};}
@@ -51,6 +51,7 @@ function navConfig(o, config) {
@@ -51,6 +51,7 @@ function navConfig(o, config) {
sessionUrl: '/auth/me',
sessionUrl: '/auth/me',
loginUrl: `/auth/login?next=${encodeURIComponent(o.path || '/')}`,
loginUrl: `/auth/login?next=${encodeURIComponent(o.path || '/')}`,
logoutUrl: '/auth/logout?next={path}',
logoutUrl: '/auth/logout?next={path}',
+ notificationsRealtime: true, // the bell hears new notifications over OpenVibe.Events (Shared 1.22.0)
};
};
}
}