mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 20:25:45 +01:00
06a985bdf8
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
756 B
756 B
NS.scan() method
Get the list of servers connected to a server.
Signature:
scan(host?: string): string[];
Parameters
Parameter | Type | Description |
---|---|---|
host | string | Optional, Hostname of the server to scan, default to current server. |
Returns:
string[]
Returns an string of hostnames.
Remarks
RAM cost: 0.2 GB
Returns an array containing the hostnames of all servers that are one node way from the specified target server. The hostnames in the returned array are strings.