From 75b5b9784ccf0d2dc328dc31d0812feb39fce162 Mon Sep 17 00:00:00 2001 From: Miguel Serra Date: Tue, 28 Jan 2020 20:06:49 +0000 Subject: [PATCH 1/2] [#3720] Incorrect method in the documentation Signed-off-by: Miguel Serra --- docs/src/main/docbook/sse.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/docbook/sse.xml b/docs/src/main/docbook/sse.xml index ddb2f11d9a..c9d1f670c2 100644 --- a/docs/src/main/docbook/sse.xml +++ b/docs/src/main/docbook/sse.xml @@ -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(); } @@ -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(); From 0e378883fb412ac1392c97009376eab630b94a4f Mon Sep 17 00:00:00 2001 From: Miguel Serra Date: Sun, 2 Feb 2020 11:42:04 +0000 Subject: [PATCH 2/2] [#3720] Update copyright year Signed-off-by: Miguel Serra --- docs/src/main/docbook/sse.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/docbook/sse.xml b/docs/src/main/docbook/sse.xml index c9d1f670c2..4bf6e9a806 100644 --- a/docs/src/main/docbook/sse.xml +++ b/docs/src/main/docbook/sse.xml @@ -1,7 +1,7 @@