function () {
			var self = this;
			console.log('updating...');
			var req = get_req();
			req.onreadystatechange = function update_state_response () {
				if (req.readyState === 4) {
					if (req.status === 200) {
						var capture = JSON.parse(req.responseText);
						if (capture.error) {
							alert(capture.error.message);
						}
						htracr.ui.update(capture);
						console.log('updated.');
					} else {
					  console.log('no updates.');
					}
				}
			};
			req.open("GET", "/conns", true);
			req.send("");
			return false;
		}
function () {
			var self = this;
			console.log('updating...');
			var req = get_req();
			req.onreadystatechange = function update_state_response () {
				if (req.readyState === 4) {
					if (req.status === 200) {
						var capture = JSON.parse(req.responseText);
						if (capture.error) {
							alert(capture.error.message);
						}
						htracr.ui.update(capture);
						console.log('updated.');
					} else {
					  console.log('no updates.');
					}
				}
			};
			req.open("GET", "/conns", true);
			req.send("");
			return false;
		}
function ( ) { var self = this ; console . log ( 'updating...' ) ; var req = get_req ( ) ; req . onreadystatechange = function update_state_response ( ) { if ( req . readyState === 4 ) { if ( req . status === 200 ) { var capture = JSON . parse ( req . responseText ) ; if ( capture . error ) { alert ( capture . error . message ) ; } htracr . ui . update ( capture ) ; console . log ( 'updated.' ) ; } else { console . log ( 'no updates.' ) ; } } } ; req . open ( "GET" , "/conns" , true ) ; req . send ( "" ) ; return false ; }
get the latest capture info from the server
get the latest capture info from the server