Update Javadoc of reactive WebSocketHandler

Replace suggestion to use zip with and operator.

Closes gh-35572
This commit is contained in:
rstoyanchev
2025-10-10 17:23:03 +01:00
parent 449b85f446
commit c165dd5e0e
2 changed files with 4 additions and 4 deletions
@@ -310,7 +310,7 @@ Java::
Flux<String> source = ... ;
Mono<Void> output = session.send(source.map(session::textMessage)); <2>
return Mono.zip(input, output).then(); <3>
return input.and(output); <3>
}
}
----
@@ -338,7 +338,7 @@ Kotlin::
val source: Flux<String> = ...
val output = session.send(source.map(session::textMessage)) // <2>
return Mono.zip(input, output).then() // <3>
return input.and(output) // <3>
}
}
----