You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ The URL format for the NIPs is https://github.com/nostr-protocol/nips/blob/maste
19
19
- Maintain the versions in the configuration section of the pom.xml files.
20
20
- Always make sure that the events are compliant with the Nostr protocol specifications, and that the events are valid according to the NIP specifications.
21
21
- Always remove unused imports
22
+
- When creating a branch, bump up the version in the pom files to the next minor version.
@@ -43,12 +43,13 @@ Artifacts are published to GitHub Packages and can be consumed from Maven by add
43
43
44
44
Authenticating to GitHub Packages is required; provide a personal access token with the appropriate scopes or `GITHUB_TOKEN` credentials. See the [GitHub Packages documentation](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry) for more details.
45
45
46
+
## Publishing Modules
47
+
48
+
This repository includes a [GitHub Actions workflow](.github/workflows/publish-github-packages.yml) that publishes all Maven modules to GitHub Packages. The workflow runs on pushes to `main` that modify `pom.xml` files and can also be triggered manually from the Actions tab.
49
+
46
50
## Examples
47
51
Example usages are located in the [`nostr-java-examples`](./nostr-java-examples) module. Additional demonstrations can be found in [nostr-client](https://github.com/tcheeric/nostr-client) and [SuperConductor](https://github.com/avlo/superconductor).
48
52
49
-
## Retry Support
50
-
`SpringWebSocketClient` leverages Spring Retry so that failed WebSocket send operations are attempted up to three times with exponential backoff.
51
-
52
53
## Supported NIPs
53
54
The API currently implements the following [NIPs](https://github.com/nostr-protocol/nips):
Copy file name to clipboardExpand all lines: docs/CODEBASE_OVERVIEW.md
+60-12Lines changed: 60 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,24 +39,72 @@ If a relay response is not received before the timeout elapses, the client logs
39
39
## Retry behavior
40
40
`SpringWebSocketClient` leverages Spring Retry so that failed send operations are retried up to three times with an exponential backoff starting at 500 ms.
41
41
42
-
## Creating and sending events
43
-
The examples module shows how to create built-in and custom events. Below is an excerpt from the examples illustrating the creation of a `TextNoteEvent`:
42
+
## Creating custom events
43
+
The `ExpirationEventExample` demonstrates how to build a NIP-40 expiration event with `GenericEvent` and send it using both the `StandardWebSocketClient` and the `SpringWebSocketClient`:
0 commit comments