Amp\Socket\connect

function connect(string $uri, array $options = []): Amp\Promise

Asynchronously establish a socket connection to the specified URI

If a scheme is not specified in the $uri parameter, TCP is assumed. Allowed schemes include: [tcp, udp, unix, udg].

Type Parameter Description Default Value
string $uri No documentation. none
array $options No documentation. []