Skip to content

POC: Broadcast events #19374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

madsrasmussen
Copy link
Contributor

@madsrasmussen madsrasmussen commented May 20, 2025

This is a POC aimed at synchronizing the UI across multiple browser tabs without the need of a WebSocket connection.

WebSocket and SignalR are excellent technologies for doing real-time updates when multiple users are working simultaneously within the same system. However, this approach focuses on keeping the UI updated across different tabs for the same user without the need of a WebSocket connection.

It is common for users to open the same back office in multiple tabs. By utilizing the Broadcast Channel, we can dispatch identical UI events that occur in one tab to all other open tabs.

How to Test

A lot of the UI is already set up to dispatch and listen to EntityActionEvents. This means that when events are triggered in one tab, and broadcast to others, it will "just work".

Open the Backoffice in multiple tabs and observe how the UI updates in real-time as you make changes in any one of them.

Examples of Tests:

  • Create, delete, or update documents.
  • Delete a document from the recycle bin or empty the recycle bin.
  • Sort the children of a document.
  • Create or rename folders across tree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant