SshSocketFactory
type SshSocketFactory = (context: SshSocketFactoryContext) => Readable | Promise<Readable>;Defined in: src/types/public.ts:131
Creates a preconnected socket-like stream for SSH sessions.
Use this hook for HTTP CONNECT, SOCKS, bastion, or custom tunnel integrations.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
context | SshSocketFactoryContext | Resolved SSH target information for the socket being opened. |
Returns
Section titled “Returns”Readable | Promise<Readable>
Preconnected readable stream, or a promise for one, passed to the SSH adapter socket option.