function addServerSideEventHandler() {
	var targetContainer = document.getElementById("eventtarget");
	var eventSource = new EventSource("/eventstream")
	eventSource.onmessage = function(event) {
	  targetContainer.innerHTML = event.data;
	  // handleQuery()
	};
}
// add an event handler for server side effents
add an event handler for server side effents
add an event handler for server side effents
function addServerSideEventHandler() {
	var targetContainer = document.getElementById("eventtarget");
	var eventSource = new EventSource("/eventstream")
	eventSource.onmessage = function(event) {
	  targetContainer.innerHTML = event.data;
	};
}
function addServerSideEventHandler ( ) { var targetContainer = document . getElementById ( "eventtarget" ) ; var eventSource = new EventSource ( "/eventstream" ) eventSource . onmessage = function ( event ) { targetContainer . innerHTML = event . data ; } ; }
add an event handler for server side effents
add an event handler for server side effents
// handleQuery()