amphp / socket

Non-blocking socket and TLS functionality for PHP based on Amp.

Home Page:https://amphp.org/socket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add generic typing for SocketAddress

kelunik opened this issue · comments

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

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