Skip to content

Instantly share code, notes, and snippets.

@dgageot

dgageot/Events.java

Created May 23, 2014
Embed
What would you like to do?
Server-sent events in fluent-http
new WebServer(routes -> routes
.get("/events", () -> Stream.iterate(0, (a) -> a + 1)))
.start(9090);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment