I am wanting to add a check to see if a request was sent before executing the accept command, I did research to see if that was possible found out you can use fs.writeFileSy