Skip to content

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

Notifications You must be signed in to change notification settings

G-khan/server-sent-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages