mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 17:23:00 +02:00
work on making the netscript api tighter
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||||
|
||||
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [writePort](./bitburner.ns.writeport.md)
|
||||
|
||||
## NS.writePort() method
|
||||
|
||||
Write data to a port.
|
||||
|
||||
<b>Signature:</b>
|
||||
|
||||
```typescript
|
||||
writePort(port: number, data: any): Promise<any>;
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| port | number | |
|
||||
| data | any | |
|
||||
|
||||
<b>Returns:</b>
|
||||
|
||||
Promise<any>
|
||||
|
||||
The data popped off the queue if it was full.
|
||||
|
||||
## Remarks
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
Write data to that netscript port.
|
||||
|
||||
Reference in New Issue
Block a user