connectSocket method

Future<Socket> connectSocket(
  1. InternetAddress address,
  2. int port
)

Connects to a non-secure socket at the specified address and port.

Returns a Future that completes with the connected Socket.

Implementation

Future<Socket> connectSocket(InternetAddress address, int port) =>
    Socket.connect(address, port);