{"size": 274, "ext": "js", "max_stars_repo_path": "state/ex1/client.js", "max_stars_repo_name": "peZhmanParsaee/js-design-patterns", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "state/ex1/client.js", "max_issues_repo_name": "peZhmanParsaee/js-design-patterns", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "state/ex1/client.js", "max_forks_repo_name": "peZhmanParsaee/js-design-patterns", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.4, "max_line_length": 60, "alphanum_fraction": 0.7116788321}
const createFailSafeSocket = require("./FailSafeSocket");

const failSafeSocket = createFailSafeSocket({ port: 5000 });

setInterval(() => {
  var usage = process.memoryUsage();
  console.log(`client send: ${JSON.stringify(usage)}`);
  failSafeSocket.send(usage);
}, 1000);
