The function pingHost (host) {
The session. PingHost (host, (error, target, sent, RCVD)=& gt; {
If (error) {
The console. The log (` failed `);
} else {
Const spent=RCVD. GetTime () - sent. GetTime ();
Return spent;
}
})
}
The function pingHost (host) {
The session. PingHost (host, (error, target, sent, RCVD)=& gt; {
If (error) {
The console. The log (` failed `);
} else {
Const spent=RCVD. GetTime () - sent. GetTime ();
Return spent;
}
})
}