Skip to content
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

WebSocket connection #5191

Merged
merged 2 commits into from
Apr 29, 2024
Merged

WebSocket connection #5191

merged 2 commits into from
Apr 29, 2024

Conversation

vietj
Copy link
Member

@vietj vietj commented Apr 26, 2024

Internal refactor of the WebSocket connection implementation

  • Move WebSocket related code from Http1xConnectionBase to its own ConnectionBase subclass in order to simplify Http1xConnectionBase and ease its maintenance. The WebSocket connection has now its own Netty handler instead of relying on the HTTP/1.x handler. The HTTP/1.x handler now does not need to take in account WebSocket frames and WebSocket state.
  • Simplify server WebSocket code by moving the code related to WebSocket accept/reject API to a WebSocket implementation that proxies an accepted WebSocket using the same approach than ClientWebSocket

@vietj vietj changed the title Websocket connection WebSocket connection Apr 26, 2024
@vietj vietj force-pushed the websocket-connection branch 4 times, most recently from 1b8c780 to c195e2f Compare April 26, 2024 22:30
@vietj vietj added this to the 5.0.0 milestone Apr 29, 2024
Move WebSocket related code from `Http1xConnectionBase` to its own `ConnectionBase` subclass in order to simplify `Http1xConnectionBase` and ease its maintenance. The WebSocket connection has now its own Netty handler instead of relying on the HTTP/1.x handler. The HTTP/1.x handler now does not need to take in account WebSocket frames and WebSocket state.

Simplify server WebSocket code by moving the code related to WebSocket accept/reject API to a WebSocket implementation that proxies an accepted `WebSocket` using the same approach than `ClientWebSocket`
@vietj vietj marked this pull request as ready for review April 29, 2024 09:25
@vietj vietj self-assigned this Apr 29, 2024
@vietj vietj merged commit 5991c28 into eclipse-vertx:master Apr 29, 2024
7 checks passed
@vietj vietj deleted the websocket-connection branch April 29, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant