Re:Ask HN: How to deal with web-socket events and API events...
by triyambakam on Monday February 19, 2024 @01:29AM
(#39426742)
What about a "creator" property on the ws event and the message handler filters for self created events? Alternatively, just send an OK back as the http response and always rely on the ws message to update the UI/state?
[ Parent
| on HN ]
Re:Ask HN: How to deal with web-socket events and API events...
by sandipghane on Monday February 19, 2024 @01:38AM
(#39426787)
Is it good way to rely on web-socket events instead of API responses?
Re:Ask HN: How to deal with web-socket events and API events...
by triyambakam on Monday February 19, 2024 @04:08AM
(#39427562)
You need to rely on something, not sure it's avoidable