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

Integrated SSL support. Modified echo example. #106

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

Conversation

lgg2
Copy link

@lgg2 lgg2 commented Nov 15, 2024

Hello,

Again and again. This must work. Minimal changes made.

To ws, skip to including the cert and cert_key paths (or blank string) in ws_socket call struct.
To wss include a valid certificate and key for it.

I have include a localhost certificate to test. It must be added a exception in the browser. For this, run the echo example in wss mode and tell to the browser to add a exception over https://localhost:8080 (in case of default values). After, it will work without problems.

… and must compile the "always" (`ws`) version. It is only a bit more difficult to read the code by the conditions, but same use and implpementation.
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