Websockets: Server to Client Push Notifications
Hey team,
I am building a custom JS comment section for an application. This comment section lives on a Case View page. When users send a comment I successfully call a Flow API that creates a new comment entity and saves it to the database, returning a list of all comments including the new one.
Now I am figuring out how to send a push notification to other clients with the comment section open and update their UI with a comment sent by another user.
A common way to achieve this outside of Decisions is to have a websocket on the server, which the client listens to.
Is there a similar flow behavior or some feature in decisions that would enable me to:
- Have a server-side service that listens for new comments
- Push the new comments to any client side UI that is listening for updates
I am trying to avoid having a client-side javascript setInterval() function that constantly polls for new comments for performance reasons.
Any help is appreciated! This may need to be something custom built using the SDK. .NET supports Websockets.
Howdy, Stranger!
Categories
- 4.1K All Categories
- 60 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions