mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-17 21:23:54 +01:00
31 lines
607 B
Markdown
31 lines
607 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [nextPortWrite](./bitburner.ns.nextportwrite.md)
|
|
|
|
## NS.nextPortWrite() method
|
|
|
|
Listen for a port write.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
nextPortWrite(port: number): Promise<void>;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| port | number | Port to listen for a write on. Must be a positive integer. |
|
|
|
|
**Returns:**
|
|
|
|
Promise<void>
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0 GB
|
|
|
|
Sleeps until the port is written to.
|
|
|