Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: litt bedre tekst #6

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rapids-and-rivers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Rapids and rivers
```kotlin
River(rapidsConnection).apply {
// preconditions will run before any regular validations.
// use precondition to filter away completely irrelevant messages.
// use precondition to include only relevant messages, and filter away irrelevant messages.
// any failed checks will result in onPreconditionError() being called
precondition { it.requireValue("@event_name", "greeting") }
// every key you want to access in onPacket() must be declared.
Expand Down Expand Up @@ -35,4 +35,4 @@ class GreetingListener : River.PacketListener {
* usualy you will LOG these as errors so you can fix the problem */
}
}
```
```
Loading