allowHalfOpen? | boolean | Defines whether the writable side of the TCP socket will automatically close on end-of-file (EOF). When set to false, the writable side of the TCP socket will automatically close on EOF. When set to true, the writable side of the TCP socket will remain open on EOF. This option is similar to that offered by the Node.js net module and allows interoperability with code which utilizes it. |
rejectUnauthorized? | boolean | When true (default), the TLS handshake will verify the server's certificate against the system CA certificate store. Set to false to disable certificate verification (e.g. for development/testing with self-signed certificates). Only applicable when secureTransport is 'on' or 'starttls'. Default true |
secureTransport? | SecureTransportKind | Specifies whether or not to use TLS when creating the TCP socket. - off — Do not use TLS. - on — Use TLS. - starttls — Do not use TLS initially, but allow the socket to be upgraded to use TLS by calling startTls(). |