mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 01:23:49 +01:00
06a985bdf8
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
679 B
679 B
Home > bitburner > NS > writePort
NS.writePort() method
Write data to a port.
Signature:
writePort(port: number, data: string | number): Promise<PortData>;
Parameters
Parameter | Type | Description |
---|---|---|
port | number | |
data | string | number |
Returns:
Promise<PortData>
The data popped off the queue if it was full.
Remarks
RAM cost: 0 GB
Write data to that netscript port.