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 #5351

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

vietj
Copy link
Member

@vietj vietj commented Oct 10, 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.

@vietj vietj added this to the 5.0.0 milestone Oct 10, 2024
@vietj vietj linked an issue Oct 10, 2024 that may be closed by this pull request
@vietj vietj force-pushed the server-web-socket-decouple-handshake-api branch from db79549 to d9052c4 Compare October 10, 2024 21:20
@vietj vietj self-assigned this Oct 10, 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.
@vietj vietj force-pushed the server-web-socket-decouple-handshake-api branch from d9052c4 to 34c459a Compare October 10, 2024 21:48
@vietj vietj merged commit cb65296 into master Oct 11, 2024
7 checks passed
@vietj vietj deleted the server-web-socket-decouple-handshake-api branch October 11, 2024 07: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.

Provide a better WebSocket handshake API
1 participant