Skip to content

Commit

Permalink
fix(docs, manager): add missing methods for sending data and sorting …
Browse files Browse the repository at this point in the history
…nodes
  • Loading branch information
JirayuSrisawat-Github committed Jan 1, 2025
1 parent bd610ce commit 110dfde
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/classes/manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ new Manager(options: ManagerOptions)

## Methods

### `send(id: string, payload: Payload): void`

Function to send data to the websocket.

> Returns: `void`
Expand All @@ -34,6 +36,16 @@ Function to send data to the websocket.
| `id` | `string` |
| `payload` | [Payload](../typedefs/payload) |

### `sorter(nodes: Collection<string, Node>): Collection<string, Node>`

Function to sort nodes.

> Returns: `Collection<string, Node>`
| Parameter | Type |
| --------- | :------------------------------------------ |
| `nodes` | Collection<string, [Node](../classes/node)> |

## Overview

| Properties | Methods | Events |
Expand Down

0 comments on commit 110dfde

Please sign in to comment.