property
tls.TLSSocket.pending
readonly pending: boolean
This is true if the socket is not connected yet, either because .connect()has not yet been called or because it is still in the process of connecting (see socket.connecting).