Skip to content

andershedstrom/dropwizard-with-sse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

This is a example project using Dropwizard with Server-sent Events support

Usage

  • Clone this repo.
  • Open a terminal and move into project directory, then execute:
$ mvn clean package
$ java -jar target/dropwizard-with-sse-0.0.1-SNAPSHOT.jar server \
  src/test/resources/config.yaml
  • Open a new terminal and execute:
$ curl localhost:8080/sse -H"Accept: text/event-stream"
  • Open yet another terminal and execute:
$ curl localhost:8080/publish?msg=HelloWorld
  • You should see the following i terminal 2:
~ $ curl localhost:8080/sse -H"Accept: text/event-stream"

data: HelloWorld

About

Example project using Dropwizard and Server-sent Events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages