Add packetReceived and packetSent events