mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
696 B
696 B
Home > bitburner > NS > getPortHandle
NS.getPortHandle() method
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.
Signature:
getPortHandle(port: Port): any[];
Parameters
Parameter | Type | Description |
---|---|---|
port | Port | Port number. Must be an integer between 1 and 20. |
Returns:
any[]
Data in the specified port.
Remarks
10 GB