Skip to main content
Version: v10.0.0

ConnectionTransportType

A transport opened by the adapter


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

Preview​

type ConnectionTransportType = {
close: () => void | Promise<unknown>;
}

Structure​

ConnectionTransportType
NameTypeDescription
close
() => void | Promise<unknown>

Closes the transport. The engine calls it once, after it detached the transport, and waits for the promise.