Documentation for method connect
assembled from the following pages:
Class: IO::Socket::Async §
From IO::Socket::Async
(IO::Socket::Async) method connect §
method connect(Str , Int --> 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.