Skip to content

fix: updating "write" signature to accept same types as "send"#9

Merged
moufmouf merged 2 commits intomasterfrom
write-types
Dec 23, 2025
Merged

fix: updating "write" signature to accept same types as "send"#9
moufmouf merged 2 commits intomasterfrom
write-types

Conversation

@moufmouf
Copy link
Collaborator

write now accepts ArrayBufferView | ArrayBuffer | Uint8Array | string | Blob

write now accepts ArrayBufferView | ArrayBuffer | Uint8Array | string | Blob
…ended yet, similar to the previous _final implementation. Consider adding if (!this._readableEnded) this.push(null) before emitting 'finish' to maintain the behavior of closing both sides of the connection when end() is called. This is important because the comment at line 591-592 states "Half open connections are not supported."
@moufmouf moufmouf merged commit 4425ca6 into master Dec 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant