From ab5eca5ce5fd76705211846adbb1ca718b5b0e1f Mon Sep 17 00:00:00 2001 From: LeoLox <58687994+leo-lox@users.noreply.github.com> Date: Sat, 18 Jan 2025 19:17:25 +0100 Subject: [PATCH] requests docu --- doc/usecases/broadcast.md | 3 ++- doc/usecases/index.md | 1 + doc/usecases/requests.md | 13 ++++++++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/doc/usecases/broadcast.md b/doc/usecases/broadcast.md index 3a223c46..c5427fe3 100644 --- a/doc/usecases/broadcast.md +++ b/doc/usecases/broadcast.md @@ -1,3 +1,4 @@ --- icon: arrow-up-right ---- \ No newline at end of file +--- +[!badge variant="primary" text="low level"] \ No newline at end of file diff --git a/doc/usecases/index.md b/doc/usecases/index.md index ead26591..f02c833c 100644 --- a/doc/usecases/index.md +++ b/doc/usecases/index.md @@ -2,5 +2,6 @@ label: Use Cases icon: pulse order: 99 +expanded: true --- \ No newline at end of file diff --git a/doc/usecases/requests.md b/doc/usecases/requests.md index d05e2fd4..3feb3504 100644 --- a/doc/usecases/requests.md +++ b/doc/usecases/requests.md @@ -1,3 +1,14 @@ --- icon: arrow-down-left ---- \ No newline at end of file +--- + +[!badge variant="primary" text="low level"] + +## Usage Example + +:::code source="../../../ndk/packages/ndk/example/basic_test.dart" language="dart" range="23-46" ::: + +## When to use + +Requests schould be used when no other usecase fits your needs. \ +Ther is ´.query´ and ´subscription´ representing the nostr equivalent, ´subscription´ schould only be used when absolutely necessary. Many relays limit the amout of simultanious subscriptions.