Transport transport_name
type TransportName
is_ready
type
() => boolean3 declarations
Transport transport_nameis_ready() => booleanZodString allow_fallbackWhether to allow fallback to other transports if the current one is not available.
type boolean
register_transportRegisters a transport.
type (transport: Transport): void
transportvoidset_current_transporttype (transport_name: string): void
transport_namestringvoidget_transportGets either the current transport or the first ready transport
depending on allow_fallback, or throws an error.
type (transport_name?: string | undefined): Transport | null
transport_name?Optional transport to use instead of the current
string | undefinedTransport | nullwhen - no transport available or readyis_readytype (): boolean | null
boolean | nullget_current_transporttype (): Transport | null
Transport | nullget_current_transport_nametype (): string | null
string | nullget_transport_by_nametype (transport_name: string): Transport | null
transport_namestringTransport | null