The-Commit-Company / frappe-react-sdk

React hooks for Frappe
https://frappe-react.vercel.app
MIT License
107 stars 36 forks source link

fix: re-subscribe when socket reconnects #63

Closed nikkothari22 closed 5 months ago

nikkothari22 commented 5 months ago

SocketIO sometimes reconnects automatically (usually on production) when either nginx cannot keep the connection alive for a long time or the server restarts.

Added a listener in our document/doctype event listeners to re-subscribe to the event (just emit again once we reconnect).

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
frappe-react-sdk ✅ Ready (Inspect) Visit Preview Mar 26, 2024 7:23am