## ReconnectingWebSocket.(constructor)

Constructs a new instance of the `ReconnectingWebSocket` class.

**Signature:**

```typescript
constructor(url: string, protocols?: ProtocolsProvider, options?: Options<WS>);
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| url | string |  |
| protocols | [ProtocolsProvider](/content/docs/sdk/core.protocolsprovider) | _(Optional)_ |
| options | [Options](/content/docs/sdk/core.options) <WS> | _(Optional)_ |

- [ReconnectingWebSocket.(constructor)](/content/docs/sdk/core.reconnectingwebsocket._constructor_#reconnectingwebsocketconstructor/index.html)
- [Parameters](/content/docs/sdk/core.reconnectingwebsocket._constructor_#parameters/index.html)
