OptionalallowKeep the writable side open after the peer half-closes.
OptionalconnectConnect deadline in milliseconds (default 15000); rejects with TimeoutError.
Remote host to dial.
Remote TCP port.
OptionaltlsTransport security mode:
'off' (default): plaintext.'on': TLS from the first byte (implicit TLS, e.g. SMTPS/IMAPS/POP3S).'starttls': plaintext that can later be upgraded via CoreSocket.startTls.
Options for connect.