diff --git a/Readme.md b/Readme.md
index 1e39c15..5099ade 100644
--- a/Readme.md
+++ b/Readme.md
@@ -16,13 +16,13 @@
io.github.jica98
aws-java-dynamo-streams
- 0.0.4
+ 0.0.5
````
b. build.gradle
````groovy
- implementation group: 'io.github.jica98', name: 'aws-java-dynamo-streams', version: '0.0.4'
+ implementation group: 'io.github.jica98', name: 'aws-java-dynamo-streams', version: '0.0.5'
````
2. If you are using spring, add the following beans to your configuration class.
@@ -64,7 +64,7 @@
// And return the flux in one of your endpoints
@GetMapping(produces = MediaType.TEXT_EVENT_STREAM_VALUE)
public Flux> streamData() {
- return dynamoStreams.emitter()
+ return dynamoStreams.stream()
.newImages()
.map(data -> ServerSentEvent.builder()
.data(data)
@@ -91,4 +91,4 @@
}
]
}
- ```
\ No newline at end of file
+ ```