Skip to content

Add helper APIs for subscribing even across multiple individual Redis Connections

Right now, I want to use publish/subscribe for publishing an event once, and sending it to all relevant websockets. However, we're finding that for some reason (likely a stale connection, no activity) our connection gets closed down by the remote. Because of this, our unsubscribe logic doesn't get triggered, yet we are unsubscribed.

I'd prefer not having to think about this scenario, so a helper API for this scenario (so we can re-establish the subscription) would be great. Alternatively, I'd prefer (also) knowing in onUnsubscribe when the connection gets closed and my subscription isn't active.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information