private void receiveAck(Packet packet) {
String data = packet.getData();
Acknowledgement ack = ackHandlers.remove(packet.getAckId());
if (ack != null) {
ack.acknowledge(data != null ? new GsonArguments(data) : null);
}
}
private void receiveEvent(Packet packet) {
JsonObject eventData = new JsonParser().parse(packet.getData()).getAsJsonObject();