Parameters
number
default:"128"
How many records to return. Values below
1 are raised to 1 and values
above 512 are lowered to 512.Returns
table
An array of packet records. See
the record fields.
Behavior
- Payloads may be truncated. Large packets are captured up to a limit;
check the
truncatedfield and compare#dataagainstsize. - It is a copy. Mutating the returned tables affects nothing.
Example
Related
on_send/on_receive: live observation.clear: empty the buffer.