From 110dfde4f8c7b4e28df87a1b5c886035e4410bf7 Mon Sep 17 00:00:00 2001 From: Jirayu Date: Thu, 2 Jan 2025 02:26:19 +0700 Subject: [PATCH] fix(docs, manager): add missing methods for sending data and sorting nodes --- docs/classes/manager.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/classes/manager.md b/docs/classes/manager.md index a86d6b7..44fcb34 100644 --- a/docs/classes/manager.md +++ b/docs/classes/manager.md @@ -25,6 +25,8 @@ new Manager(options: ManagerOptions) ## Methods +### `send(id: string, payload: Payload): void` + Function to send data to the websocket. > Returns: `void` @@ -34,6 +36,16 @@ Function to send data to the websocket. | `id` | `string` | | `payload` | [Payload](../typedefs/payload) | +### `sorter(nodes: Collection): Collection` + +Function to sort nodes. + +> Returns: `Collection` + +| Parameter | Type | +| --------- | :------------------------------------------ | +| `nodes` | Collection | + ## Overview | Properties | Methods | Events |