View Source K8s.Client.Mint.Request.WebSocket (k8s v2.0.0-rc.2)

Represents a WebSocket connection state.

Link to this section Summary

Link to this section Types

@type t() :: %K8s.Client.Mint.Request.WebSocket{
  from: term(),
  response: term(),
  stream_to: term(),
  waiting: term(),
  websocket: term()
}

Link to this section Functions

@spec map_frame({:binary, binary()} | {:close, any(), any()}) ::
  {:close, {integer(), binary()}}
  | {:error, binary()}
  | {:stderr, binary()}
  | {:stdout, binary()}
Link to this function

map_outgoing_frame(data)

View Source
@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()