mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 21:25:47 +01:00
06a985bdf8
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
33 lines
669 B
Markdown
33 lines
669 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [connect](./bitburner.singularity.connect.md)
|
|
|
|
## Singularity.connect() method
|
|
|
|
Connect to a server.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
connect(hostname: string): boolean;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| hostname | string | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
boolean
|
|
|
|
True if the connect command was successful, false otherwise.
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 2 GB \* 16/4/1
|
|
|
|
Run the connect HOSTNAME command in the terminal. Can only connect to neighbors.
|
|
|