Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

feat: close read and write #115

Closed
wants to merge 4 commits into from
Closed

feat: close read and write #115

wants to merge 4 commits into from

Conversation

jacobheun
Copy link
Contributor

@jacobheun jacobheun commented Oct 15, 2020

This also now throws an error when a write is attempted on a non existent stream. Previously we would just send the message, but this is against the mplex protocol.

This is technically a breaking change due to how stream.close was only closing the read end of the stream, which is incorrect behavior.

TODO:

BREAKING CHANGE: close will now close both reading and writing on the stream. It previously only closed for reading, which was not the correct behavior.
achingbrain added a commit that referenced this pull request May 19, 2022
This also now throws an error when a write is attempted on a non existent stream. Previously we would just send the message, but this is against the mplex protocol.

Refs: #120
Supersedes: #115
@achingbrain
Copy link
Member

Superseded by #121

@achingbrain achingbrain deleted the feat/close-read-write branch May 20, 2022 18:29
achingbrain added a commit that referenced this pull request May 23, 2022
This also now throws an error when a write is attempted on a non existent stream. Previously we would just send the message, but this is against the mplex protocol.

Refs: #120
Supersedes: #115
github-actions bot pushed a commit that referenced this pull request May 23, 2022
## [1.1.0](v1.0.5...v1.1.0) (2022-05-23)

### Features

* close read and write streams ([#170](#170)) ([3917968](3917968)), closes [#120](#120) [#115](#115)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants