Accessing negotiated ALPN protocol from ReactPHP Socket #617
masakielastic
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am experimenting with minimal HTTP/2 client and server implementations
using ReactPHP Socket.
In these experiments I need to detect the negotiated ALPN protocol
(e.g. "h2") after the TLS handshake.
With plain PHP streams this can be obtained via:
However, this information is not currently accessible through the
ReactPHP Socket connection API.
For reference, I previously shared a minimal HTTP/2 example here:
https://github.com/orgs/reactphp/discussions/616
Would it make sense for ReactPHP Socket to expose the negotiated ALPN
protocol (or TLS metadata) through the connection interface?
For example:
I would appreciate any feedback on whether this fits ReactPHP's
design direction.
Beta Was this translation helpful? Give feedback.
All reactions