mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 06:48:42 +02:00
work on making the netscript api tighter
This commit is contained in:
34
markdown/bitburner.singularity.connect.md
Normal file
34
markdown/bitburner.singularity.connect.md
Normal file
@@ -0,0 +1,34 @@
|
||||
<!-- 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
|
||||
|
||||
Singularity - Level 1
|
||||
|
||||
Run the connect HOSTNAME command in the terminal. Can only connect to neighbors.
|
||||
|
||||
Reference in New Issue
Block a user