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

Listen on second port for secure WebSocket notifications #1

Open
michielbdejong opened this issue Oct 6, 2022 · 2 comments · May be fixed by #2
Open

Listen on second port for secure WebSocket notifications #1

michielbdejong opened this issue Oct 6, 2022 · 2 comments · May be fixed by #2

Comments

@michielbdejong
Copy link
Member

No description provided.

@michielbdejong
Copy link
Member Author

michielbdejong commented Oct 7, 2022

Testing it with ./test.sh in the feature-secure-webhook-to-ws branch

@michielbdejong michielbdejong linked a pull request Oct 7, 2022 that will close this issue
@michielbdejong
Copy link
Member Author

It seems https://www.php.net/manual/en/function.pcntl-fork.php is not supported in the base image, so I create 2 scripts, one server/serverWps.php and one server/serverWh2Ws.php.
Next challenge: Listen for webhooks in server/serverWh2Ws.php. Until now I'm getting:

curl -i http://pubsub:8081
HTTP/1.1 426 Upgrade header MUST be provided
Connection: Upgrade
Upgrade: websocket
Sec-WebSocket-Version: 13
Sec-WebSocket-Protocol: solid-0.1
X-Powered-By: Ratchet/0.4.3

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 a pull request may close this issue.

1 participant