Skip to content

Commit

Permalink
[eclipse-ee4j#3720] Incorrect method in the documentation (eclipse-ee…
Browse files Browse the repository at this point in the history
…4j#4378)

* [eclipse-ee4j#3720] Incorrect method in the documentation

Signed-off-by: Miguel Serra <[email protected]>
(cherry picked from commit 780b754)
  • Loading branch information
mcserra authored and jansupol committed Mar 23, 2020
1 parent b3e3baa commit 2df5080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/main/docbook/sse.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static class SseResource {
.name("message-to-client")
.data(String.class, "Hello world " + i + "!")
.build();
eventSink.onNext(event);
eventSink.send(event);
}
}).start();
}
Expand Down Expand Up @@ -432,7 +432,7 @@ public static class BroadcasterResource {
Client client = ClientBuilder.newBuilder().build();
WebTarget target = client.target("http://example.com/events");
SseEventSource sseEventSource = SseEventSource.target(target).build();
sseEventSource.subscribe((event) -> System.out.println(event.getName() + "; "
sseEventSource.register(event -> System.out.println(event.getName() + "; "
+ event.readData(String.class)));
sseEventSource.open();

Expand Down

0 comments on commit 2df5080

Please sign in to comment.