Skip to main content
Version: v8.0.0

SocketConnectionType

Everything an adapter needs to open a connection. Built from the socket's static configuration and passed through the onConnect interceptors right before every connection attempt.


Import
import { SocketConnectionType } from "@hyper-fetch/sockets"

Preview

type SocketConnectionType<Adapter> = {
adapterOptions: ExtractAdapterOptionsType<Adapter> | undefined;
queryParams: ExtractAdapterQueryParamsType<Adapter> | undefined;
url: string;
}

Structure

SocketConnectionType
NameTypeDescription
adapterOptions
ExtractAdapterOptionsType<Adapter> | undefined
queryParams
ExtractAdapterQueryParamsType<Adapter> | undefined
url
string