mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-29 17:37:34 +01:00
716 B
716 B
NS.scan() method
Get the list servers connected to a server.
Signature:
scan(host?: string): string[];
Parameters
Parameter | Type | Description |
---|---|---|
host | string | Hostname of the server to scan. |
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.