接口 PacketEventOptions实验性

Options for events triggered by network packets.

interface PacketEventOptions {
    ignoredPacketIds?: PacketId[];
    monitoredPacketIds?: PacketId[];
}

属性

ignoredPacketIds?: PacketId[]

If provided, packet IDs in this list will not trigger the event subscriptions.

monitoredPacketIds?: PacketId[]

If provided only packet IDs in this list will trigger the event subscriptions.