# SubscriptionRequest

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

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

A subscription request object handled by the server that has created the stream. It can be accepted or rejected.

## Properties

- **`arguments`** (`any`, required)
  Arguments passed with the subscription request.
- **`instance`** (`Instance`, required)
  Instance of the application that wants to subscribe to the stream.

## Methods

### accept

Accepts the subscription request.

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

**Returns**: `void`

### acceptOnBranch

Accepts the request on a stream branch.

```ts
(branchKey: string) => void
```

**Parameters**

- **`branchKey`** (`string`, required)
  Key of the branch on which to accept the request.

**Returns**: `void`

### reject

Rejects the request.

```ts
(reason?: string) => void
```

**Parameters**

- **`reason`** (`string`, optional)
  Reason for rejecting the request.

**Returns**: `void`

## Related types

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