Skip to main content
Version: v10.5.1

WebsocketEncodeMessageType

Emitted message to be encoded into an outgoing frame


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

Preview​

type WebsocketEncodeMessageType = {
payload: unknown;
topic: string;
}

Structure​

WebsocketEncodeMessageType
NameTypeDescription
payload
unknown
topic
string