Hi,
My over view of Aggregate gateway are ;
1. Gateway aggregate clients.
2. Gateway connects to Broker as a client with gateway name as Id and gateway's willmessage.
3. When gateway receives Connect message from clients, it just maintains the client list with out sending connect message to the broker.
4. There for, Broker handles clients connecting via gateway as one client.
5. Gateway sends PINGREQ insted of clients.
6. Gateway delivers PUBLISHed msgs to clients. Gateway keeps subscribed topic and clients corresponding table to do this. When some client Subscribe the same topics as already subscribed, gateway maintain the table without sending SUBSCRIBE msg to the broker.