Skip to content

A play2 server side sample with stream, Enumerator, Enumeratee

Notifications You must be signed in to change notification settings

fhelg/play2-serverside-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play2-serverside-sample

This is a play2 sample to demonstrate SSE (Server Sent events) with Play2.

I really encourage you to have a look at [https://dev.w3.org/html5/eventsource/] which describe EventSource. Using this API rather than emulating it using XMLHttpRequest or an iframe allows the user agent to make better use of network resources in cases where the user agent implementor and the network operator are able to coordinate in advance. Amongst other benefits, this can result in significant savings in battery life on portable devices. This is discussed further in the section below on connectionless push.

The application has been tested successfully with Play 2.0.3-RC2, with Safari and Chrome.

For more details about Server sent events, read this blog article : https://www.html5rocks.com/en/tutorials/eventsource/basics/

Thanks to Sadek Drobi (CTO at Zenexity) for its help.

Nicolas @nmartignole

About

A play2 server side sample with stream, Enumerator, Enumeratee

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published