Using websockets increases the code and infrastructure complexity of your app, especially as you scale horizontally.
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.