11 lines
176 B
JavaScript
11 lines
176 B
JavaScript
|
var recentSource = new EventSourcePolyfill('/recentblocks', {
|
||
|
headers: {
|
||
|
"token": webpass
|
||
|
}
|
||
|
})
|
||
|
|
||
|
|
||
|
recentSource.onmessage = function(e){
|
||
|
console.debug(e)
|
||
|
}
|