對於例子是這樣的: https://bravenewmethod.com/2011/02/21/node-js-tls-client-example/做「結束」或「關閉」時,得到所謂的tls.connect
或者我自己的代碼:
client = tls.connect(port, host, tlsOptions, function() {
}
client.on('end', function(data) {
}
什麼時候這些生命週期方法得到實際調用?在文檔https://nodejs.org/api/tls.html中,我沒有看到任何關於它的信息。謝謝。