Skip to main content

Interface: ChatRouteTransportOptions

Defined in: react/src/transports/chat-route-transport.ts:4

Properties​

api​

api: string

Defined in: react/src/transports/chat-route-transport.ts:6

URL of a createChatRoute handler.


credentials?​

optional credentials?: RequestCredentials

Defined in: react/src/transports/chat-route-transport.ts:13


fetch?​

optional fetch?: (input, init?) => Promise<Response>

Defined in: react/src/transports/chat-route-transport.ts:12

e.g. expo/fetch on React Native, which can stream response bodies.

Parameters​

input​

RequestInfo | URL

init?​

RequestInit

Returns​

Promise<Response>


headers?​

optional headers?: Record<string, string> | Headers | (() => Record<string, string> | Headers | Promise<Record<string, string> | Headers>)

Defined in: react/src/transports/chat-route-transport.ts:10

Static headers, or a function read before each request.


sessionId​

sessionId: string

Defined in: react/src/transports/chat-route-transport.ts:8

The conversation the route keeps for this chat.