first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

5
node_modules/@expo/ws-tunnel/build/tunnel/http.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
import { WebSocket } from 'ws';
import { RequestBodyChunkMessage, RequestMessage, RequestAbortMessage } from '../protocol';
export declare function handleProxiedRequest(tunnel: WebSocket, url: URL, message: RequestMessage): Promise<void>;
export declare function pushProxiedRequestBodyChunk(message: RequestBodyChunkMessage): Promise<void>;
export declare function abortProxiedRequest(message: RequestAbortMessage): Promise<void>;

24
node_modules/@expo/ws-tunnel/build/tunnel/tunnel.d.ts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
export interface TunnelOptions {
/** The main URL of the ws tunnel service */
apiUrl?: string;
/** The (unique) session identifier */
session: string;
/** The maximum amount of times the connection can be retried when establishing connection */
maxReconnect?: number;
/**
* Event handler to inform uses based on tunnel status changes.
* - connecting, when the tunnel is trying to connect for the first time
* - connected, when the tunnel is active and ready
* - reconnecting, when the tunnel is trying to re-establish a lost connection
* - disconnected, when the tunnel failed to re-establish a lost connection
*/
onStatusChange?: (status: 'connecting' | 'connected' | 'reconnecting' | 'disconnected') => void;
}
/**
* Create a new tunnel instance.
* Note, this doesn't start the tunnel itself yet.
*/
export declare function createTunnel(): {
start({ apiUrl, session, maxReconnect, onStatusChange, }: TunnelOptions): Promise<string>;
stop(): void;
};

View File

@@ -0,0 +1,5 @@
import { WebSocketCloseMessage, WebSocketConnectMessage, WebSocketMessageMessage } from '../protocol';
import { type WebSocket } from '../utils/ws';
export declare function sendToProxiedWebsocket(message: WebSocketMessageMessage): Promise<void>;
export declare function createProxiedWebsocket(tunnel: WebSocket, message: WebSocketConnectMessage): Promise<void>;
export declare function closeProxiedWebsocket(message: WebSocketCloseMessage): Promise<void>;