Don't Use Websockets Until You Try This…
Using websockets increases the code and infrastructure complexity of your app, especially as you scale horizontally.
2022-12-18 19:00:00 - JavaScript Mastery
Depending on your needs, you may be able to use Server Sent Events (SSE) instead. Server Sent Events is more efficient than polling, but simple to implement on both the backend and frontend.