<!-- 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)

## WsClient class

> 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.
> 


<b>Signature:</b>

```typescript
declare class WorkgridWS 
```

## Constructors

|  Constructor | Modifiers | Description |
|  --- | --- | --- |
|  [(constructor)({ context, pingInterval })](./client.wsclient._constructor_.md) |  | <b><i>(BETA)</i></b> Constructs a new instance of the <code>WorkgridWS</code> class |

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [publish(connect, type, data)](./client.wsclient.publish.md) |  | <b><i>(BETA)</i></b> Publish an event |
|  [subscribe(connect, trigger, callback)](./client.wsclient.subscribe.md) |  | <b><i>(BETA)</i></b> Listen to events for the given trigger |

