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

[Home](./index.md) &gt; [iceshrimp-sdk](./iceshrimp-sdk.md) &gt; [Stream](./iceshrimp-sdk.stream.md) &gt; [(constructor)](./iceshrimp-sdk.stream._constructor_.md)

## Stream.(constructor)

Constructs a new instance of the `Stream` class

**Signature:**

```typescript
constructor(origin: string, user: {
        token: string;
    } | null, options?: {
        WebSocket?: any;
    });
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  origin | string |  |
|  user | { token: string; } \| null |  |
|  options | { WebSocket?: any; } | _(Optional)_ |

