bitburner-src/markdown/bitburner.ns.writeport.md
Olivier Gagnon 3217f53717 doc
2022-08-17 08:50:05 -04:00

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.