source: trip-planner-front/node_modules/eventsource/example/sse-client.js@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 161 bytes
Line 
1var EventSource = require('..')
2var es = new EventSource('http://localhost:8080/sse')
3es.addEventListener('server-time', function (e) {
4 console.log(e.data)
5})
Note: See TracBrowser for help on using the repository browser.