Skip to content

Commit

Permalink
Merge pull request #3 from JICA98/JICA98-patch-1
Browse files Browse the repository at this point in the history
Update Readme.md
  • Loading branch information
JICA98 authored Aug 3, 2023
2 parents 1067ea1 + da4f236 commit 5399497
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
<dependency>
<groupId>io.github.jica98</groupId>
<artifactId>aws-java-dynamo-streams</artifactId>
<version>0.0.4</version>
<version>0.0.5</version>
</dependency>
````
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.

Expand Down Expand Up @@ -64,7 +64,7 @@
// And return the flux in one of your endpoints
@GetMapping(produces = MediaType.TEXT_EVENT_STREAM_VALUE)
public Flux<ServerSentEvent<DataRoot>> streamData() {
return dynamoStreams.emitter()
return dynamoStreams.stream()
.newImages()
.map(data -> ServerSentEvent.<DataRoot>builder()
.data(data)
Expand All @@ -91,4 +91,4 @@
}
]
}
```
```

0 comments on commit 5399497

Please sign in to comment.