SIGN IN SIGN UP

fix: redis pub/sub and streaming response issue (#6008)

* fix: unsubscribe redis pubsub when connection closes during prediction or after successful response

* update: add heartbeat to keep connection alive and start/stop heartbeat on server start/stop

* refactor: redis pub/sub methods, add unsubscribe, await subscribe

* fix: redundant unsubscribe

* fix: use map to store clients list

---------
I
Ilango committed
34aa82e3a02b744ba061ee0a183fe0a372cfbc56
Parent: 06dc0e1
Committed by GitHub <noreply@github.com> on 3/30/2026, 12:18:23 PM