Skip to content

WebSocketOpcode

WebSocketOpcode = "continuation" | "text" | "binary" | "close" | "ping" | "pong"

Defined in: packages/format-websocket/src/frame/websocket-frame.ts:8

A frame opcode (RFC 6455 §5.2), by name.

text and binary start a message, continuation carries its next fragment; close, ping and pong are control frames and are never fragmented.