HTTP.WebSocket.Event.Frame (http_web_socket v0.21.19)

Copy Markdown View Source

Proxy-mode text, binary, ping or pong event. Data is always a binary.

Fragmented data frames are reassembled and UTF-8/protocol validated. Close retains the existing HTTP.WebSocket.Event.Close lifecycle event.

Summary

Types

t()

@type t() :: %HTTP.WebSocket.Event.Frame{
  data: binary(),
  opcode: :text | :binary | :ping | :pong | nil,
  target: HTTP.WebSocket.t() | nil,
  type: String.t()
}