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

Extract websocket functionality that is common to both server and future client #2582

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

p12tic
Copy link
Contributor

@p12tic p12tic commented Dec 14, 2024

Currently websocket server embeds a lot of functionality that would be useful for websocket client. This PR extracts it into a form that is easier to reuse. The websocket client itself has been implemented in #2552.

This PR extracts parts of #2552 to make it easier to land.

@p12tic
Copy link
Contributor Author

p12tic commented Dec 14, 2024

cc @xemul This PR is part of #2552 and all your comments have been addressed.

I wasn't sure whether the "description of commits is not sufficiently clear" applied to any commits in this PR. Please let me know if any of them should be improved.

@p12tic
Copy link
Contributor Author

p12tic commented Dec 23, 2024

@xemul Just a friendly ping.

This will allow to implement Websocket client that reuses existing code.
Current implementation of websocket connection is specific to the
server. Rename to more appropriate name.
@p12tic p12tic force-pushed the websocket-server-extract-common branch from 45a41b6 to 4c3bfeb Compare December 24, 2024 10:35
Websocket connection handling is mostly not specific to the server and
thus can be reused on the client easily.
Previous name was useful when it's used locally in translation unit. The
new name is exposed in a header and should be more unique.
This function will be useful on websocket client to construct
Sec-WebSocket-Key header.
@p12tic p12tic force-pushed the websocket-server-extract-common branch from 4c3bfeb to f044136 Compare December 24, 2024 10:37
@p12tic
Copy link
Contributor Author

p12tic commented Jan 6, 2025

@xemul Just a friendly ping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants