Repository navigation
fix(realtime): forward an explicit send() timeout of 0 - #2869
MohammedAlkindi wants to merge 1 commit into
Conversation
send()'s websocket branch resolved the timeout with ||, so a caller passing timeout: 0 got the channel default instead. httpSend() and the REST fallback in the same method already use ??.
|
No actionable comments were generated in the recent review. Summary
Change: Bug fix Merge Risk:
|
Reopens #2647, which closed when I deleted my fork by mistake. The commits are unchanged.
🔍 Description
What changed?
The websocket branch of
send()now resolvesopts.timeoutwith??, like the other two paths.Why was this change needed?
0is falsy, so that branch replaced a caller'stimeout: 0with the channel default while the other paths forwarded it.📸 Screenshots/Examples
🔄 Breaking changes
Only an explicit
timeout: 0on the websocket path behaves differently.📋 Checklist
<type>(<scope>): <description>pnpm nx formatto ensure consistent code formatting (ran Prettier on changed files)📝 Additional notes
Reverting the fix makes the added test fail.