bitburner-src/markdown/bitburner.ns.getporthandle.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

33 lines
696 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [getPortHandle](./bitburner.ns.getporthandle.md)
## 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.
<b>Signature:</b>
```typescript
getPortHandle(port: Port): any[];
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| port | [Port](./bitburner.port.md) | Port number. Must be an integer between 1 and 20. |
<b>Returns:</b>
any\[\]
Data in the specified port.
## Remarks
10 GB