Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cedricziel/demo-sse-spring-boot

Spring Boot (1.3.0.M1) Demo for Server Sent Events
https://github.com/cedricziel/demo-sse-spring-boot

demo spring-boot

Last synced: about 1 month ago
JSON representation

Spring Boot (1.3.0.M1) Demo for Server Sent Events

Awesome Lists containing this project

README

        

# Simple Spring SSE Demo

SSE is for Server Sent Events.

## Requirements

* jdk8
* Maven3

## Run

```
mvn spring-boot:run
```

Open localhost:8080

## Takeaways

* the timeout for the SSE - Emitters needs to be raised.
* emitters need to be manually removed when the listener dies or on completion
* SSE with Spring Boot is practically a no-brainer