Repository navigation
Add WebSocket support to connect-go client and server #1083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
jonbodner-buf
wants to merge
34
commits into
connectrpc:main
from
jonbodner-buf:feat/websocket-transport
Closed
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
eab1836
first prototype of http1.1 websocket support
jonbodner-buf e81d3b6
use constants instead of hardcoded strings
jonbodner-buf 37dc781
add smoke test, address linting issues
jonbodner-buf 204a3f8
Merge branch 'main' into feat/websocket-transport
jonbodner-buf ed88462
new prototype for websockets based on connect go v2. Also includes an…
jonbodner-buf e041f6f
updates to websocket prototype
jonbodner-buf 1147b69
fix go.mod. Remove unneeded changes in connecthttp.
jonbodner-buf b0e49c4
additional changes to meet the spec
jonbodner-buf 2c18108
additional test
jonbodner-buf d12d06b
differntiate between client close and client crash. updated RFC.
jonbodner-buf 66e8378
messages can now overwrite headers, change documentation and implemen…
jonbodner-buf 158f276
move websocket to make it part of http
jonbodner-buf 9e384fb
meet the latest spec
jonbodner-buf b4c117e
1. WebSocket keep-alive (the main change)
jonbodner-buf a4b31ea
add support for tunable keepalives via ping/pong
jonbodner-buf a747a47
update the connect-go websocket implementation to follow the drain ru…
jonbodner-buf 7edba40
merge master
jonbodner-buf 35d1582
resolve merge error
jonbodner-buf aa0d94f
properly handle server closing the connection when there are addition…
jonbodner-buf 3a9737a
add missing test
jonbodner-buf 15d1171
handle closed connection across goroutines
jonbodner-buf 88d39f9
use 1007 for server error for invalid utf-8
jonbodner-buf 04fa543
Merge branch 'main' into feat/websocket-transport
jonbodner-buf dd1ff75
switch to only use 3102 for client close codes
jonbodner-buf e72e0be
address various issues
jonbodner-buf 764e721
move M messages from JSON objects to JSON arrays
jonbodner-buf 9f3a60e
meet the latest spec. resolve issues found.
jonbodner-buf 2b4fd42
Merge branch 'main' into feat/websocket-transport
jonbodner-buf 85b7f21
fix panic from merging in websocket support
jonbodner-buf 8b057e7
fix racey tests
jonbodner-buf 25f8741
add updated code
jonbodner-buf d126432
fix race conditions
jonbodner-buf cd4126a
address bug in close timeout. refactor away unneeded fields from stru…
jonbodner-buf ce4c7e2
code refactoring
jonbodner-buf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Serving WebSocket on every route by default is a big change for existing users. Request headers arrive in M after the handshake, so HTTP middleware that authenticates or trusts proxy headers never sees them. A deny list only covers the headers we know about. Can the server opt in instead?