aswi2020vldc-gitlab/templetes/node_modules/eventsource/example/sse-client.js @ 0b434236
1 |
var EventSource = require('..') |
---|---|
2 |
var es = new EventSource('http://localhost:8080/sse') |
3 |
es.addEventListener('server-time', function (e) { |
4 |
console.log(e.data) |
5 |
})
|