Skip to content

Commit

Permalink
requests docu
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-lox committed Jan 18, 2025
1 parent 9d7b2f1 commit ab5eca5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion doc/usecases/broadcast.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
icon: arrow-up-right
---
---
[!badge variant="primary" text="low level"]
1 change: 1 addition & 0 deletions doc/usecases/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
label: Use Cases
icon: pulse
order: 99
expanded: true

---
13 changes: 12 additions & 1 deletion doc/usecases/requests.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
---
icon: arrow-down-left
---
---

[!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.

0 comments on commit ab5eca5

Please sign in to comment.