Search
Represents a WebSocket connection state.
@type t() :: %K8s.Client.Mint.Request.WebSocket{ from: term(), response: term(), stream_to: term(), waiting: term(), websocket: term() }
@spec map_frame({:binary, binary()} | {:close, any(), any()}) :: {:close, {integer(), binary()}} | {:error, binary()} | {:stderr, binary()} | {:stdout, binary()}
@spec map_outgoing_frame( {:stdin, binary()} | {:close, integer(), binary()} | :close | :exit ) :: {:ok, :close | {:text, binary()} | {:close, integer(), binary()}} | K8s.Client.HTTPError.t()
@spec new(keyword()) :: t()