Home > bitburner > NS > nextPortWrite
Listen for a port write.
Signature:
nextPortWrite(port: number): Promise<void>;|
Parameter |
Type |
Description |
|---|---|---|
|
port |
number |
Port to listen for a write on. Must be a positive integer. |
Returns:
Promise<void>
RAM cost: 0 GB
Sleeps until the port is written to. Ports are shared across all hosts and contents are reset on game restart.