mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 19:14:32 +02:00
6073964768
This is BN15. It is a really big change; see the PR for all the details.
65 lines
1.5 KiB
Markdown
65 lines
1.5 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Darknet](./bitburner.darknet.md) > [setStasisLink](./bitburner.darknet.setstasislink.md)
|
|
|
|
## Darknet.setStasisLink() method
|
|
|
|
Applies or removes a stasis link to the script's current server. This will allow you to connectToSession() or exec() to the server remotely, even if it is not directly connected to the server a script is running on. It also allows direct connection to the server via the terminal.
|
|
|
|
Stasis links also prevent the server from going offline or moving. It does not prevent other servers from moving or going offline, though, so it does not guarantee that the stasis link server will never lose connections to other servers.
|
|
|
|
There is a maximum of stasis links that can be applied globally, which can be seen using getStasisLinkLimit(). This limit can be increased by finding special augmentations in the deep darknet.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
setStasisLink(shouldLink?: boolean): Promise<DarknetResult>;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
<table><thead><tr><th>
|
|
|
|
Parameter
|
|
|
|
|
|
</th><th>
|
|
|
|
Type
|
|
|
|
|
|
</th><th>
|
|
|
|
Description
|
|
|
|
|
|
</th></tr></thead>
|
|
<tbody><tr><td>
|
|
|
|
shouldLink
|
|
|
|
|
|
</td><td>
|
|
|
|
boolean
|
|
|
|
|
|
</td><td>
|
|
|
|
_(Optional)_ true to apply a stasis link, false to remove it. Optional. Defaults to true.
|
|
|
|
|
|
</td></tr>
|
|
</tbody></table>
|
|
|
|
**Returns:**
|
|
|
|
Promise<[DarknetResult](./bitburner.darknetresult.md)<!-- -->>
|
|
|
|
A promise that resolves to a [DarknetResult](./bitburner.darknetresult.md) object.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 12 GB
|
|
|