mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 14:12:27 +01:00
06a985bdf8
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
675 B
675 B
Home > bitburner > NS > getServer
NS.getServer() method
Returns a server object for the given server. Defaults to the running script's server if host is not specified.
Signature:
getServer(host?: string): Server;
Parameters
Parameter | Type | Description |
---|---|---|
host | string | Optional. Hostname for the requested server object. |
Returns:
The requested server object.
Remarks
RAM cost: 2 GB