apimachineryk8s.io/apimachinery/pkg/util/httpstream/wsstream Index | Files

package wsstream

import "k8s.io/apimachinery/pkg/util/httpstream/wsstream"

Package wsstream contains compatibility wrappers for websocket streaming.

Deprecated: use k8s.io/streaming/pkg/httpstream/wsstream directly.

Index

Constants

const (
	WebSocketProtocolHeader        = streamws.WebSocketProtocolHeader
	ChannelWebSocketProtocol       = streamws.ChannelWebSocketProtocol
	Base64ChannelWebSocketProtocol = streamws.Base64ChannelWebSocketProtocol
)
const (
	IgnoreChannel    = streamws.IgnoreChannel
	ReadChannel      = streamws.ReadChannel
	WriteChannel     = streamws.WriteChannel
	ReadWriteChannel = streamws.ReadWriteChannel
)

Functions

func IgnoreReceives

func IgnoreReceives(ws *websocket.Conn, timeout time.Duration)

func IgnoreReceivesWithLogger

func IgnoreReceivesWithLogger(logger klog.Logger, ws *websocket.Conn, timeout time.Duration)

func IsWebSocketRequest

func IsWebSocketRequest(req *http.Request) bool

func IsWebSocketRequestWithStreamCloseProtocol

func IsWebSocketRequestWithStreamCloseProtocol(req *http.Request) bool

func IsWebSocketRequestWithTunnelingProtocol

func IsWebSocketRequestWithTunnelingProtocol(req *http.Request) bool

func NewDefaultChannelProtocols

func NewDefaultChannelProtocols(channels []ChannelType) map[string]ChannelProtocolConfig

func NewDefaultReaderProtocols

func NewDefaultReaderProtocols() map[string]ReaderProtocolConfig

Types

type ChannelProtocolConfig

type ChannelProtocolConfig = streamws.ChannelProtocolConfig

type ChannelType

type ChannelType = streamws.ChannelType

type Conn

type Conn = streamws.Conn

func NewConn

func NewConn(protocols map[string]ChannelProtocolConfig) *Conn

type Reader

type Reader = streamws.Reader

func NewReader

func NewReader(r io.Reader, ping bool, protocols map[string]ReaderProtocolConfig) *Reader

func NewReaderWithLogger

func NewReaderWithLogger(logger klog.Logger, r io.Reader, ping bool, protocols map[string]ReaderProtocolConfig) *Reader

type ReaderProtocolConfig

type ReaderProtocolConfig = streamws.ReaderProtocolConfig

Source Files

doc.go wsstream.go

Version
v0.36.0 (latest)
Published
Apr 22, 2026
Platform
js/wasm
Imports
6 packages
Last checked
42 minutes ago

Tools for package owners.