Skip to content

About

Sample Live Score app - Spring Boot Reactive Webflux Server-Sent Events

Topics

Resources

Stars

20 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Sample Live Score app - Spring Boot Reactive Webflux Server-Sent Events

This is a sample live score application that shows how to use Server-Sent Events:

  • Spring Webflux

Article

What are the Server Sent Events and More..

Running

Run this using the gradle:

gradle bootRun

This will start the application on port 8080.

For sending the live scores to the clients

curl --location --request POST 'http://localhost:8080/api/v1/live-scores' \
--header 'Content-Type: application/json' \
--data-raw '{
    "homeTeam": "Arsenal",
    "awayTeam": "Tottenham",
    "homeScore": 1,
    "awayScore": 1
}' 

Starting the Server Sent Events for consuming live scores

curl --location --request GET 'http://localhost:8080/api/v1/live-scores'

About

Sample Live Score app - Spring Boot Reactive Webflux Server-Sent Events

Topics

Resources

Stars

20 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages