> For the complete documentation index, see [llms.txt](https://docs.videsk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.videsk.io/es-developers/sdks/intercambio-archivos/propiedades.md).

# Propiedades

## `store`

Esta propiedad contiene el listado de archivos recibidos. Corresponde a un `Map`, por lo tanto podrás acceder a cada archivo con las [propiedades nativas de un constructor Map](#user-content-fn-1)[^1].

La tienda está construída con clave de `CRC-32` y como valor [`BeamPortFile`](/es-developers/sdks/intercambio-archivos/beamportfile.md).

```javascript
port.store; // Map {}
// Listado de archivos
port.store.get(crc32); // Retorna un BeamPortFile
```

## `connected`

Esta propiedad devuelve un `Boolean` sobre estado de conexión.

```javascript
port.connected; // true o false
```

## `ports`

Esta propiedad devuelve la cantidad de pares `BeamPort` conectados como número entero. Habitualmente el valor siempre será `1`.

```javascript
port.ports;
```

## `connection`

Esta propiedad retorna la conexión de par activa como [`RTCDataChannel`](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel).

```
port.connection;
```

{% hint style="info" %}
Sugerimos no utilizar la conexión para enviar datos sin conocimiento, ya que se envían en una nomenclatura binaria propietaria.
{% endhint %}

## `debug`

Esta propiedad retorna el acceso al modo debugger propietario. Para hacer uso del debugger deberás definir en `localStorage` la clave `debug` con el valor en `beamport`.

```javascript
localStorage.debug = 'beamport';
```

{% hint style="info" %}
Recuerda que activar el modo debug es ineficiente para entornos productivos.
{% endhint %}

## Propiedades estáticas

Todas las propiedades estáticas se pueden acceder directamente desde el constructor `BeamPort`, sin necesidad de instanciar.

```javascript
BeamPort.DESCRIPTION
BeamPort.RECEIVED
BeamPort.FAILED
```

### `DESCRIPTION`

Su valor es igual al número `1`.

### `CHUNK`

Su valor es igual al número `2`.

### `STATE`

Su valor es igual al número `3`.

### `EXCHANGED`

Su valor es igual al número `4`.

### `RECEIVED`

Su valor es igual al número `5`.

### `FAILED`

Su valor es igual al número `6`.

### `DELETED`

Su valor es igual al número `7`.

[^1]: <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.videsk.io/es-developers/sdks/intercambio-archivos/propiedades.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
