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

2. Refactor the listen method which is doing to many things #131

Merged
merged 3 commits into from
Aug 9, 2024

Conversation

mathieucarbou
Copy link
Collaborator

@mathieucarbou mathieucarbou commented Aug 9, 2024

  • Separate port config logic which can be set in constructor or with setPort (aka ESPAsyncWS)
  • Separate certificate logic which is only applicable to https
  • Removed the use_ssl boolean: if one creates a https server, this is to use ssl. Don't create a https server if this is to use http otherwise it will just confuse users

Note: this PR includes commit from PR #129

- Separate port config logic which can be set in constructor or with setPort (aka ESPAsyncWS)
- Separate certificate logic which is only applicable to https
- Removed the use_ssl boolean: if one creates a https server, this is to use ssl. Don't create a https server if this is to use http otherwise it will just confuse users
@hoeken hoeken merged commit 6a043ef into hoeken:v2-dev Aug 9, 2024
3 checks passed
@mathieucarbou mathieucarbou deleted the set-port branch August 12, 2024 12:23
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