Skip to content

POC: Broadcast events#39

Open
Franck-Boost wants to merge 4 commits intomainfrom
v16/poc/broadcast-entity-action-events
Open

POC: Broadcast events#39
Franck-Boost wants to merge 4 commits intomainfrom
v16/poc/broadcast-entity-action-events

Conversation

@Franck-Boost
Copy link

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.

2 participants