Skip to content

Commit c0dde4c

Browse files
authored
Update README.md
1 parent 4552053 commit c0dde4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ public class ExampleClient {
7272
RSocket client = RSocketFactory.connect().keepAlive().transport(ws).start().block();
7373
7474
try {
75-
Flux<Payload> s = client.requestStream(DefaultPayload.textPayload("peace"));
75+
Flux<Payload> s = client.requestStream(DefaultPayload.create("peace"));
7676
7777
s.take(10).doOnNext(p -> System.out.println(p.getDataUtf8())).blockLast();
7878
} finally {
79-
client.close().block();
79+
client.dispose();
8080
}
8181
}
8282
}

0 commit comments

Comments
 (0)