disconnect.
Parameters
function
required
Called as
callback(record) for each incoming packet.Returns
number
The listener id, for
disconnect.Behavior
- Inbound capture depends on the transport. Check
stats— theinboundfield reports whether inbound interception is active. If it isfalse, this listener will not be called even though outgoing capture works. - Passive only, and errors are logged and skipped.