{"size": 454, "ext": "js", "max_stars_repo_path": "web/igv-client.js", "max_stars_repo_name": "joshua-gould/igv", "max_stars_repo_stars_event_min_datetime": "2015-05-10T03:01:00.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-24T23:11:32.000Z", "max_issues_repo_path": "web/igv-client.js", "max_issues_repo_name": "joshua-gould/igv", "max_issues_repo_issues_event_min_datetime": "2015-05-07T14:34:58.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-30T13:38:57.000Z", "max_forks_repo_path": "web/igv-client.js", "max_forks_repo_name": "joshua-gould/igv", "max_forks_repo_forks_event_min_datetime": "2015-06-03T16:14:35.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-15T19:39:39.000Z"}
{"max_stars_count": 406, "max_issues_count": 931, "max_forks_count": 498, "avg_line_length": 26.7058823529, "max_line_length": 139, "alphanum_fraction": 0.6299559471}


class IGVClient {

    constructor(host, port) {
        this.host = host || localhost;
        this.port = port || 60151;
    }

    async send(command, paramString) {

        var salt = Math.random(); // to prevent the browser from caching the response and preventing a relaunch if igv was shut down
        var localURL = `http://127.0.0.1:${this.port}/${command}?${decodeURIComponent(paramString)}&callback=igv.callBack();&salt=${salt}`;

    }

}