public void callEventWithJSON(string socketEventName, string jsonString, JSONDynamicEventHandler eventHandler) { if (socket != null) { print.WriteLine("Calling Event: " + socketEventName); socket.Emit(socketEventName, jsonString, "", (fn) => { eventHandler(fn); }); } }
void callCommunicatorWithIDs(List<long> genomeIDs, JSONDynamicEventHandler jsonEvent) { simpleCom.callEventWithJSON("evaluateGenomes", SimpleJson.SimpleJson.SerializeObject(genomeIDs),jsonEvent); }
void callCommunicatorWithIDs(List <long> genomeIDs, JSONDynamicEventHandler jsonEvent) { simpleCom.callEventWithJSON("evaluateGenomes", SimpleJson.SimpleJson.SerializeObject(genomeIDs), jsonEvent); }