ackManager.initAckIndex(client.getSessionId(), packet.getAckId());
}
switch (packet.getType()) {
case PING: {
Packet outPacket = new Packet(PacketType.PONG);
outPacket.setData(packet.getData());
// TODO use future
client.getBaseClient().send(outPacket, transport);
if ("probe".equals(packet.getData())) {
client.getBaseClient().send(new Packet(PacketType.NOOP), Transport.POLLING);
} else {
client.getBaseClient().schedulePingTimeout();
}
break;
}