Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Server][Experimental] Deprecate
with-channel
, add as-channel
This is an attempt to address #318, and an alternative to #391. In contrast to #391, this approach: - Avoids a breaking change by keeping the old (racey) behaviour by default. - Offers a new API (`as-channel`) with explicit pre/post WebSocket handshake handlers. Another alternative would be to (re)introduce a queue as discussed at #318 (comment), but would be a fair bit of complexity.
- Loading branch information
1 parent
9a0d209
commit 4295b86
Showing
2 changed files
with
104 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters