Phoenix.SocketClient.Socket (phoenix_socket_client v0.8.0)

View Source

The socket process for handling the WebSocket connection.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

t()

@type t() :: %Phoenix.SocketClient.Socket{
  connect_start_time: integer() | nil,
  heartbeat_timer: reference() | nil,
  hibernation_enabled: boolean(),
  last_activity: integer() | nil,
  max_pending_messages: pos_integer(),
  message_processor: pid() | nil,
  pending_decodes: %{required(reference()) => {pid() | atom(), String.t()}},
  status: :disconnected | :connecting | :connected,
  sup_pid: pid() | atom(),
  to_send_count: non_neg_integer(),
  to_send_r: list(),
  transport_pid: pid() | nil,
  transport_ref: reference() | nil
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.