<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [firefish-js](./firefish-js.md) &gt; [Stream](./firefish-js.stream.md) &gt; [disconnectToChannel](./firefish-js.stream.disconnecttochannel.md)

## Stream.disconnectToChannel() method

**Signature:**

```typescript
disconnectToChannel(connection: NonSharedConnection): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  connection | NonSharedConnection |  |

**Returns:**

void