<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@workgrid/client](./client.md) &gt; [WsClient](./client.wsclient.md) &gt; [(constructor)](./client.wsclient._constructor_.md)

## WsClient.(constructor)

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
> 

Constructs a new instance of the `WorkgridWS` class

<b>Signature:</b>

```typescript
constructor({ context, pingInterval }: {
        context: () => Promise<Context>;
        pingInterval?: number;
    });
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  { context, pingInterval } | { context: () =&gt; Promise&lt;Context&gt;; pingInterval?: number; } |  |

