connect static method

Future<Socket> connect(
  1. dynamic host,
  2. int port, {
  3. dynamic sourceAddress,
  4. int sourcePort = 0,
  5. Duration? timeout,
})

Implementation

static Future<Socket> connect(
  dynamic host,
  int port, {
  dynamic sourceAddress,
  int sourcePort = 0,
  Duration? timeout,
}) async {
  throw UnsupportedError('Socket unavailable on web');
}