SSEAdapterOptionsType
Import
import { SSEAdapterOptionsType } from "@hyper-fetch/sockets"
Source
Package
Preview
type SSEAdapterOptionsType = {
autoConnect?: boolean;
decode?: (event: MessageEvent) => SSEDecodedMessageType | null;
eventSourceInit?: EventSourceInit;
}
Structure
SSEAdapterOptionsType
| Name | Type | Description |
|---|---|---|
| autoConnect | | |
| eventSourceInit | | |
| decode | | Turns an incoming message into a listener event - use it when the server does not send
(e.g.
|

