connect
ErrorsCollection

connect

Synthesised documentation from type/IO/Socket/Async

From type/IO/Socket/Async

See Original text in context

method connect(Str $hostInt $port --> Promise)

Attempts to connect to the TCP server specified by $host and $port, returning a Promise that will either be kept with a connected IO::Socket::Async or broken if the connection cannot be made.