@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.
- package/dist/client/index.d.ts +2 -17
- package/dist/client/index.js +209 -268
- package/dist/server/index.d.ts +6 -4
- package/dist/server/index.js +255 -308
- package/package.json +10 -11
package/dist/server/index.d.ts
CHANGED
|
@@ -10,11 +10,8 @@ declare class DainTunnelServer {
|
|
|
10
10
|
private sseConnections;
|
|
11
11
|
private wsConnections;
|
|
12
12
|
private tunnelRequestCount;
|
|
13
|
-
private readonly MAX_CONCURRENT_REQUESTS_PER_TUNNEL;
|
|
14
|
-
/**
|
|
15
|
-
* Safely send a message to a WebSocket, handling errors gracefully
|
|
16
|
-
*/
|
|
17
13
|
private safeSend;
|
|
14
|
+
private decrementRequestCount;
|
|
18
15
|
constructor(hostname: string, port: number);
|
|
19
16
|
private setupExpressRoutes;
|
|
20
17
|
private setupWebSocketServer;
|
|
@@ -29,6 +26,11 @@ declare class DainTunnelServer {
|
|
|
29
26
|
private handleRequest;
|
|
30
27
|
private handleSSERequest;
|
|
31
28
|
private removeTunnel;
|
|
29
|
+
private findAndRemoveTunnel;
|
|
30
|
+
private cleanupPendingRequests;
|
|
31
|
+
private cleanupTunnelSSEConnections;
|
|
32
|
+
private cleanupTunnelWSConnections;
|
|
33
|
+
private cleanupChallengesForSocket;
|
|
32
34
|
start(): Promise<void>;
|
|
33
35
|
stop(): Promise<void>;
|
|
34
36
|
}
|