bitburner-src/markdown/bitburner.ns.writeport.md
omuretsu 06a985bdf8 Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
2022-10-21 11:16:00 -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.