OrpcStreamAdapterOptionsType
Options of the
OrpcStreamAdapter
, set with the
adapterOptions
of the socket or per connection in
onConnect
Import
import { OrpcStreamAdapterOptionsType } from "@hyper-fetch/orpc"
Source
Package
Preview
type OrpcStreamAdapterOptionsType = {
autoConnect?: boolean;
fetch?: typeof fetch;
fetchOptions?: Omit<RequestInit, method | headers | body | signal>;
headers?: Record<string, string>;
}
Structure
OrpcStreamAdapterOptionsType
| Name | Type | Description |
|---|---|---|
| autoConnect | | Connects when the socket is created. Without it, call
|
| fetch | | The
of browsers, Node.js 18+, Bun and Deno. |
| fetchOptions | | Options passed to
|
| headers | | Headers of every stream request, e.g. the
|

