Now we send the JSON file of the graph back to the client using websockets