mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
6 lines
161 B
JavaScript
6 lines
161 B
JavaScript
|
var EventSource = require('..')
|
||
|
var es = new EventSource('http://localhost:8080/sse')
|
||
|
es.addEventListener('server-time', function (e) {
|
||
|
console.log(e.data)
|
||
|
})
|