-
Notifications
You must be signed in to change notification settings - Fork 9
/
awaitingpacket.d.ts
29 lines (24 loc) · 947 Bytes
/
awaitingpacket.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { HDirection } from "../../../protocol/hdirection";
import { HPacket } from "../../../protocol/hpacket";
export class AwaitingPacket {
constructor(headerName: string, direction: HDirection, maxWaitingTimeMillis: number);
constructor(headerName: string, direction: HDirection, maxWaitingTimeMillis: number, setBlocked: boolean);
/**
* Set minimum waiting time (wait this time even if the packet was already intercepted)
* @param millis minimum waiting time
*/
setMinWaitingTime(millis: number): AwaitingPacket;
/**
* Add a condition to the awaiting packet
* @param condition Predicate with HPacket parameter return true or false
*/
addCondition(condition: (hPacket: HPacket) => boolean): AwaitingPacket;
/**
* Get header name of awaiting packet
*/
get headerName(): string;
/**
* Get direction of awaiting packet
*/
get direction(): HDirection;
}