Open esteban-gs opened 1 year ago
I can add some comments to clear this up, but since I've already got the websockets working, I think Its easier to just go with websockets for now, and then add this refactor to the backlog.
There is one blocker/ confusion - is an organization tied to a single user account or can multiple users belong to an organization? This makes a difference in how we know a message is read - easiest thing is to just add a boolean read indication whether it was read. However, if a message has multiple recipients, the logic is a little different and we need to track which recipients have read it.
Proof of concept Messages & Notifications
We were trying to implement fully implement sockets in-house, but after taking into consideration the lift required to implement sockets, we might be better off with other approaches. This is probably not going to be viable to achieve for beta, so let's explore some simpler alternatives.
Current Proof of Concept Shows what it would take to implement sockets in-house. https://github.com/Nonprofit-Exchange-Hub/web-app/pull/314
Possible Approach: Simple HTTP Polling/long polling.
Acceptance Criteria