# StreamBranch

**Kind**: interface | **Module**: [Interop](https://docs.interop.io/desktop/reference/javascript/interop/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/interop/streambranch/index.html

A stream branch created by the application.

## Properties

- **`key`** (`string`, required)
  Branch key.

## Methods

### close

Closes the stream branch.

```ts
() => void
```

**Returns**: `void`

### push

Pushes data to this branch only.

```ts
(data: object) => void
```

**Parameters**

- **`data`** (`object`, required)
  Data to push.

**Returns**: `void`

### subscriptions

All subscriptions to that branch.

```ts
() => StreamSubscription[]
```

**Returns**: `StreamSubscription[]`

## Related types

- [StreamSubscription](https://docs.interop.io/desktop/reference/javascript/interop/streamsubscription/index.md)
