feat(transport): introduce transport abstraction and socket-mode support for RustBridge
This commit is contained in:
@@ -45,3 +45,17 @@ export interface IRustBridgeOptions extends IBinaryLocatorOptions {
|
||||
* Resets on each chunk received. */
|
||||
streamTimeoutMs?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Options for connecting to an already-running daemon via Unix socket or named pipe.
|
||||
*/
|
||||
export interface ISocketConnectOptions {
|
||||
/** Enable auto-reconnect on unexpected disconnect (default: false) */
|
||||
autoReconnect?: boolean;
|
||||
/** Initial delay between reconnect attempts in ms (default: 100) */
|
||||
reconnectBaseDelayMs?: number;
|
||||
/** Maximum delay between reconnect attempts in ms (default: 30000) */
|
||||
reconnectMaxDelayMs?: number;
|
||||
/** Maximum number of reconnect attempts before giving up (default: 10) */
|
||||
maxReconnectAttempts?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user