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.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions