mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
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.