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

Decouple the handshake part ServerWebSocket API #5387

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

vietj
Copy link
Member

@vietj vietj commented Nov 6, 2024

Motivation:

The server WebSocket API can control handshake implicitly (e.g. sending a message) or explicitly (accept or any WebSocket interaction). This result in a more complex implementation than it should be for such API.

Changes:

Extract the handshake API of the ServerWebSocket API in a new ServerWebSocketHandshake API for which an handler can be set when WebSocket handshake needs to be controlled.

This is a backport of Vert.x 5 server WebSocket handshake handler.

The current API is maintained but deprecated.

Motivation:

The server WebSocket API can control handshake implicitly (e.g. sending a message) or explicitly (accept or any WebSocket interaction). This result in a more complex implementation than it should be for such API.

Changes:

Extract the handshake API of the ServerWebSocket API in a new ServerWebSocketHandshake API for which an handler can be set when WebSocket handshake needs to be controlled.

This is a backport of Vert.x 5 server WebSocket handshake handler.

The current API is maintained but deprecated.
@vietj vietj added this to the 4.5.11 milestone Nov 6, 2024
@vietj vietj self-assigned this Nov 6, 2024
@vietj vietj merged commit e87837f into 4.x Nov 6, 2024
7 checks passed
@vietj vietj deleted the backport-server-websocket-handshake-api branch November 6, 2024 09:31
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.

1 participant