@pumpkin-plugins/port-mapping API / testing/fake-network / delayReplies
Function: delayReplies()
delayReplies(
net,action,shouldDelay?): () =>void
Defined in: tools/port-mapping/src/testing/fake-network.ts:174
Holds back the router's answer to every UPnP request for action, such as DeletePortMapping, on connections the network dials from now on. The request still reaches the router.
Parameters
net
action
string
shouldDelay?
() => boolean
Checked on each read; the answer is held back only while it returns true.
Returns
A function that lets the held-back answers through.
() => void