fix(ws): remove all frame listeners on client closure#2739
Conversation
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR adds resource cleanup logic to the WebSocket interceptor source. When a WebSocket client connection closes, the frame now removes all its registered event listeners, preventing listener leakage after disconnection. This mirrors existing cleanup behavior in the HTTP response handler. ChangesWebSocket Connection Cleanup
Possibly Related PRs
Estimated Code Review Effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
Released: v2.14.5 🎉This has been released in v2.14.5. Get these changes by running the following command: Predictable release automation by Release. |
Makes sure that WebSocket frames also remove all their listeners on connection closure.