connect method

dynamic connect(
  1. dynamic arg1, [
  2. dynamic arg2,
  3. dynamic arg3,
  4. dynamic arg4,
])

See official documentation on possible signatures:

Returns instance of TLSSocket.

Implementation

// Can not declare return type as [TLSSocket] because there is a getter with
// the same name.
external dynamic connect(arg1, [arg2, arg3, arg4]);