blob: f636d604b6d30a3a3b04f5728c11bcda0645337a [file] [log] [blame]
This sample tests Server Sent Events. To test
* Deploy the target/videoplayer.war file to the server avatar distribution
$cd appserver/distributions/avatar/target/stage/glassfish6/glassfish/bin
$./asadmin start-domain
$./asadmin deploy videoplayer.war
* Open the multiple browser windows with http://localhost:8080/videoplayer
that opens SSE connection at http://localhost:8080/videoplayer/notifications
* From some other windows, play/pause the video using the following URLs respectively:
http://localhost:8080/videoplayer/remotecontrol/play
http://localhost:8080/videoplayer/remotecontrol/pause
These send SSE notifications