Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvsk committed Nov 18, 2023
1 parent 74faa98 commit 65ff834
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ events:<CONNECTION_ID>:<SUBSCRIPTION_ID>:<COMMAND>"
See the list of commands with their Nostr equivalents and description:

| Command | Nostr Equivalent | Example Payload |
| ------- | ---------------- | ------- | ----------- |
| ------- | ---------------- | --------------- |
| FOUND_END | EOSE ||
| FOUND_EVENT | EVENT| `"{\"id\": \"...\", \"sig\": \"...\", ...}"` |
| OK | OK |`"[\"OK\", \"<MESSAGE>\"]"` |
| FOUND_EVENT | EVENT| `{"id": "...", "sig": "...", ...}` |
| OK | OK |`["OK", "<MESSAGE>"]` |
| COUNT | COUNT | "5" |
| NOTICE | NOTICE | `"MESSAGE"` |
| TERMINATE || `"[4000, "<REASON>"]"` |
| NOTICE | NOTICE | `<MESSAGE>` |
| TERMINATE || `[4000, "<REASON>"]` |

Keep in mind, there is no message for `AUTH` because it is handled directly in WebsocketServer and not through Redis.

Expand Down

0 comments on commit 65ff834

Please sign in to comment.