@dainprotocol/tunnel 1.1.26 → 1.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,8 +5,6 @@ declare class DainTunnel extends EventEmitter {
5
5
  private tunnelUrl;
6
6
  private port;
7
7
  private reconnectAttempts;
8
- private maxReconnectAttempts;
9
- private reconnectDelay;
10
8
  private apiKey;
11
9
  private tunnelId;
12
10
  private secret;
@@ -14,25 +12,14 @@ declare class DainTunnel extends EventEmitter {
14
12
  private sseClients;
15
13
  private httpAgent;
16
14
  private heartbeatInterval;
17
- private readonly HEARTBEAT_INTERVAL;
18
15
  constructor(serverUrl: string, apiKey: string);
19
- /**
20
- * Sign a challenge using HMAC-SHA256
21
- * @private
22
- */
23
16
  private signChallenge;
24
- /**
25
- * Start client-side heartbeat to detect connection issues early
26
- * @private
27
- */
17
+ private safeSend;
28
18
  private startHeartbeat;
29
- /**
30
- * Stop the client-side heartbeat
31
- * @private
32
- */
33
19
  private stopHeartbeat;
34
20
  start(port: number): Promise<string>;
35
21
  private connect;
22
+ private cleanupAllClients;
36
23
  private requestChallenge;
37
24
  private handleMessage;
38
25
  private handleRequest;
@@ -40,9 +27,7 @@ declare class DainTunnel extends EventEmitter {
40
27
  private handleWebSocketMessage;
41
28
  private handleSSEConnection;
42
29
  private handleSSEClose;
43
- private readonly REQUEST_TIMEOUT;
44
30
  private forwardRequest;
45
- private sendMessage;
46
31
  private attemptReconnect;
47
32
  stop(): Promise<void>;
48
33
  }