Skip to content

Commit

Permalink
chore(deps): update and generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Feb 18, 2021
1 parent ea306db commit d7767b2
Show file tree
Hide file tree
Showing 29 changed files with 297 additions and 306 deletions.
20 changes: 13 additions & 7 deletions docs/interfaces/client.client-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,36 @@

### dispose

**dispose**: () => *void* \| *Promise*<*void*\>
**dispose**: () => *void* \| *Promise*<void\>

Dispose of the instance and clear up resources.

#### Type declaration:

▸ (): *void* \| *Promise*<void\>

**Returns:** *void* \| *Promise*<void\>

Inherited from: [Disposable](types.disposable.md).[dispose](types.disposable.md#dispose)

## Methods

### on

**on**<E\>(`event`: E, `listener`: [*EventListener*](../modules/client.md#eventlistener)<E\>): *function*
**on**<E\>(`event`: E, `listener`: [*EventListener*](../modules/client.md#eventlistener)<E\>): () => *void*

Listens on the client which dispatches events about the socket state.

#### Type parameters:

Name | Type |
------ | ------ |
:------ | :------ |
`E` | [*Event*](../modules/client.md#event) |

#### Parameters:

Name | Type |
------ | ------ |
:------ | :------ |
`event` | E |
`listener` | [*EventListener*](../modules/client.md#eventlistener)<E\> |

Expand All @@ -58,7 +64,7 @@ ___

### subscribe

**subscribe**<T\>(`payload`: [*SubscribePayload*](message.subscribepayload.md), `sink`: [*Sink*](types.sink.md)<T\>): *function*
**subscribe**<T\>(`payload`: [*SubscribePayload*](message.subscribepayload.md), `sink`: [*Sink*](types.sink.md)<T\>): () => *void*

Subscribes through the WebSocket following the config parameters. It
uses the `sink` to emit received data or errors. Returns a _cleanup_
Expand All @@ -67,13 +73,13 @@ function used for dropping the subscription and cleaning stuff up.
#### Type parameters:

Name | Default |
------ | ------ |
:------ | :------ |
`T` | *unknown* |

#### Parameters:

Name | Type |
------ | ------ |
:------ | :------ |
`payload` | [*SubscribePayload*](message.subscribepayload.md) |
`sink` | [*Sink*](types.sink.md)<T\> |

Expand Down
10 changes: 3 additions & 7 deletions docs/interfaces/client.clientoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

Configuration used for the GraphQL over WebSocket client.

## Hierarchy

* **ClientOptions**

## Table of contents

### Properties
Expand All @@ -29,7 +25,7 @@ Configuration used for the GraphQL over WebSocket client.

### connectionParams

`Optional` **connectionParams**: *undefined* \| *Record*<*string*, *unknown*\> \| () => *Record*<*string*, *unknown*\> \| *Promise*<*Record*<*string*, *unknown*\>\>
`Optional` **connectionParams**: *undefined* \| *Record*<string, unknown\> \| () => *Record*<string, unknown\> \| *Promise*<Record<string, unknown\>\>

Optional parameters, passed through the `payload` field with the `ConnectionInit` message,
that the client specifies when establishing a connection with the server. You can use this
Expand Down Expand Up @@ -82,7 +78,7 @@ ___

### on

`Optional` **on**: *undefined* \| *Partial*<{ `closed`: (`event`: *unknown*) => *void* ; `connected`: (`socket`: *unknown*, `payload?`: *Record*<*string*, *unknown*\>) => *void* ; `connecting`: () => *void* }\>
`Optional` **on**: *undefined* \| *Partial*<{ `closed`: (`event`: *unknown*) => *void* ; `connected`: (`socket`: *unknown*, `payload?`: *Record*<string, unknown\>) => *void* ; `connecting`: () => *void* }\>

Register listeners before initialising the client. This way
you can ensure to catch all client relevant emitted events.
Expand Down Expand Up @@ -138,7 +134,7 @@ ___

### retryWait

`Optional` **retryWait**: *undefined* \| (`retries`: *number*) => *Promise*<*void*\>
`Optional` **retryWait**: *undefined* \| (`retries`: *number*) => *Promise*<void\>

Control the wait time between retries. You may implement your own strategy
by timing the resolution of the returned promise with the retries count.
Expand Down
4 changes: 0 additions & 4 deletions docs/interfaces/client.completemessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[client](../modules/client.md).CompleteMessage

## Hierarchy

* **CompleteMessage**

## Table of contents

### Properties
Expand Down
6 changes: 1 addition & 5 deletions docs/interfaces/client.connectionackmessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[client](../modules/client.md).ConnectionAckMessage

## Hierarchy

* **ConnectionAckMessage**

## Table of contents

### Properties
Expand All @@ -19,7 +15,7 @@

### payload

`Optional` `Readonly` **payload**: *undefined* \| *Record*<*string*, *unknown*\>
`Optional` `Readonly` **payload**: *undefined* \| *Record*<string, unknown\>

___

Expand Down
6 changes: 1 addition & 5 deletions docs/interfaces/client.connectioninitmessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[client](../modules/client.md).ConnectionInitMessage

## Hierarchy

* **ConnectionInitMessage**

## Table of contents

### Properties
Expand All @@ -19,7 +15,7 @@

### payload

`Optional` `Readonly` **payload**: *undefined* \| *Record*<*string*, *unknown*\>
`Optional` `Readonly` **payload**: *undefined* \| *Record*<string, unknown\>

___

Expand Down
4 changes: 0 additions & 4 deletions docs/interfaces/client.errormessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[client](../modules/client.md).ErrorMessage

## Hierarchy

* **ErrorMessage**

## Table of contents

### Properties
Expand Down
4 changes: 0 additions & 4 deletions docs/interfaces/client.nextmessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[client](../modules/client.md).NextMessage

## Hierarchy

* **NextMessage**

## Table of contents

### Properties
Expand Down
4 changes: 0 additions & 4 deletions docs/interfaces/client.subscribemessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[client](../modules/client.md).SubscribeMessage

## Hierarchy

* **SubscribeMessage**

## Table of contents

### Properties
Expand Down
6 changes: 1 addition & 5 deletions docs/interfaces/client.subscribepayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[client](../modules/client.md).SubscribePayload

## Hierarchy

* **SubscribePayload**

## Table of contents

### Properties
Expand All @@ -32,4 +28,4 @@ ___

### variables

`Optional` `Readonly` **variables**: *undefined* \| *null* \| *Record*<*string*, *unknown*\>
`Optional` `Readonly` **variables**: *undefined* \| *null* \| *Record*<string, unknown\>
4 changes: 0 additions & 4 deletions docs/interfaces/message.completemessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[message](../modules/message.md).CompleteMessage

## Hierarchy

* **CompleteMessage**

## Table of contents

### Properties
Expand Down
6 changes: 1 addition & 5 deletions docs/interfaces/message.connectionackmessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[message](../modules/message.md).ConnectionAckMessage

## Hierarchy

* **ConnectionAckMessage**

## Table of contents

### Properties
Expand All @@ -19,7 +15,7 @@

### payload

`Optional` `Readonly` **payload**: *undefined* \| *Record*<*string*, *unknown*\>
`Optional` `Readonly` **payload**: *undefined* \| *Record*<string, unknown\>

___

Expand Down
6 changes: 1 addition & 5 deletions docs/interfaces/message.connectioninitmessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[message](../modules/message.md).ConnectionInitMessage

## Hierarchy

* **ConnectionInitMessage**

## Table of contents

### Properties
Expand All @@ -19,7 +15,7 @@

### payload

`Optional` `Readonly` **payload**: *undefined* \| *Record*<*string*, *unknown*\>
`Optional` `Readonly` **payload**: *undefined* \| *Record*<string, unknown\>

___

Expand Down
4 changes: 0 additions & 4 deletions docs/interfaces/message.errormessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[message](../modules/message.md).ErrorMessage

## Hierarchy

* **ErrorMessage**

## Table of contents

### Properties
Expand Down
4 changes: 0 additions & 4 deletions docs/interfaces/message.nextmessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[message](../modules/message.md).NextMessage

## Hierarchy

* **NextMessage**

## Table of contents

### Properties
Expand Down
4 changes: 0 additions & 4 deletions docs/interfaces/message.subscribemessage.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[message](../modules/message.md).SubscribeMessage

## Hierarchy

* **SubscribeMessage**

## Table of contents

### Properties
Expand Down
6 changes: 1 addition & 5 deletions docs/interfaces/message.subscribepayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

[message](../modules/message.md).SubscribePayload

## Hierarchy

* **SubscribePayload**

## Table of contents

### Properties
Expand All @@ -32,4 +28,4 @@ ___

### variables

`Optional` `Readonly` **variables**: *undefined* \| *null* \| *Record*<*string*, *unknown*\>
`Optional` `Readonly` **variables**: *undefined* \| *null* \| *Record*<string, unknown\>
10 changes: 3 additions & 7 deletions docs/interfaces/server.context.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
## Type parameters

Name | Default |
------ | ------ |
:------ | :------ |
`E` | *unknown* |

## Hierarchy

* **Context**

## Table of contents

### Properties
Expand Down Expand Up @@ -49,7 +45,7 @@ ___

### connectionParams

`Optional` `Readonly` **connectionParams**: *undefined* \| *Readonly*<*Record*<*string*, *unknown*\>\>
`Optional` `Readonly` **connectionParams**: *undefined* \| *Readonly*<Record<string, unknown\>\>

The parameters passed during the connection initialisation.

Expand All @@ -66,7 +62,7 @@ ___

### subscriptions

`Readonly` **subscriptions**: *Record*<*string*, *null* \| *AsyncIterator*<*unknown*, *any*, *undefined*\>\>
`Readonly` **subscriptions**: *Record*<string, *null* \| AsyncIterator<unknown, any, undefined\>\>

Holds the active subscriptions for this context. **All operations**
that are taking place are aggregated here. The user is _subscribed_
Expand Down
10 changes: 3 additions & 7 deletions docs/interfaces/server.server-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
## Type parameters

Name | Default |
------ | ------ |
:------ | :------ |
`E` | *undefined* |

## Hierarchy

* **Server**

## Table of contents

### Methods
Expand All @@ -24,7 +20,7 @@ Name | Default |

### opened

**opened**(`socket`: [*WebSocket*](server.websocket.md), `ctxExtra`: E): *function*
**opened**(`socket`: [*WebSocket*](server.websocket.md), `ctxExtra`: E): (`code`: *number*, `reason`: *string*) => *Promise*<void\>

New socket has beeen established. The lib will validate
the protocol and use the socket accordingly. Returned promise
Expand All @@ -42,7 +38,7 @@ promise will resolve once the internal cleanup is complete.
#### Parameters:

Name | Type |
------ | ------ |
:------ | :------ |
`socket` | [*WebSocket*](server.websocket.md) |
`ctxExtra` | E |

Expand Down
Loading

0 comments on commit d7767b2

Please sign in to comment.