client.onDisconnect();
}
if (packet.getSubType() == PacketType.CONNECT) {
Namespace namespace = namespacesHub.get(packet.getNsp());
namespace.onConnect(client);
// send connect handshake packet back to client
client.getBaseClient().send(packet, transport);
}
if (packet.getSubType() == PacketType.ACK) {