ExWapp.Conn.State (ExWapp v0.1.2)

Copy Markdown View Source

Runtime state owned by ExWapp.Conn.

It keeps the session and store references together with the Noise handshake and partial WebSocket frame buffers used while the connection is active.

Summary

Types

t()

@type t() :: %ExWapp.Conn.State{
  buffer: binary(),
  header_seen?: boolean(),
  header_sent?: boolean(),
  noise: ExWapp.Noise.t() | nil,
  noise_opts: keyword(),
  session: pid() | nil,
  store: ExWapp.Store.t() | nil,
  stream_started?: boolean()
}