mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 20:25:45 +01:00
33f0150d25
Co-authored-by: Snarling <84951833+Snarling@users.noreply.github.com>
734 B
734 B
Home > bitburner > NS > getPortHandle
NS.getPortHandle() method
Get all data on a port.
Signature:
getPortHandle(portNumber: number): NetscriptPort;
Parameters
Parameter | Type | Description |
---|---|---|
portNumber | number | Port number. Must be an integer between 1 and 20. |
Returns:
Remarks
RAM cost: 0 GB
Get a handle to a Netscript Port.
WARNING: Port Handles only work in NetscriptJS (Netscript 2.0). They will not work in Netscript 1.0.