amphp / socket

Non-blocking socket and TLS functionality for PHP based on Amp.
https://amphp.org/socket
MIT License
237 stars 38 forks source link

Add generic typing for SocketAddress #101

Closed kelunik closed 1 year ago

kelunik commented 1 year ago

We should probably remove the string union so we can use automatic inferred typing for the SocketAddress type of a socket.

trowski commented 1 year ago

Discussed in #103, templating the SocketAddress type wasn't as useful as we hoped.