draft: refactor project so it sits on top of a standalone app
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
var EventSource = require('..')
|
||||
var es = new EventSource('http://localhost:8080/sse')
|
||||
es.addEventListener('server-time', function (e) {
|
||||
console.log(e.data)
|
||||
})
|
||||
Reference in New Issue
Block a user