Wampex.Client.Session (wampex_client v0.1.2)

A state machine based process for managing a WAMP Session. Utilizes StatesLanguage to implement the gen_statem process. See priv/session.json for the JSON representation

Link to this section Summary

Link to this section Types

Specs

t() :: %Wampex.Client.Session{
  challenge: Wampex.Roles.Peer.Challenge.t() | nil,
  connected: boolean(),
  error: binary(),
  event: Wampex.Roles.Broker.Event.t() | nil,
  goodbye: binary() | nil,
  id: integer() | nil,
  interrupt: integer() | nil,
  invocation: Wampex.Roles.Dealer.Invocation.t() | nil,
  message: Wampex.message() | nil,
  message_queue: [],
  name: module() | nil,
  protocol: binary(),
  realm: Wampex.Client.Realm.t(),
  request_id: integer(),
  requests: [],
  roles: [module()],
  serializer: module(),
  transport: module(),
  transport_pid: pid() | module() | nil,
  url: binary()
}

Link to this section Functions

Link to this function

call(pid, event)

See :gen_statem.call/2.

Link to this function

call(pid, event, timeout)

See :gen_statem.call/3.

Link to this function

cast(pid, event)

See :gen_statem.cast/2.

Link to this function

cast_send_request(name, request)

Specs

cast_send_request(name :: atom() | pid(), request :: Wampex.message()) :: :ok
Link to this function

cast_send_request(name, request, pid)

Specs

cast_send_request(
  name :: atom() | pid(),
  request :: Wampex.message(),
  from :: pid()
) :: :ok
Link to this function

child_spec(opts)

Link to this function

connected?(name)

Specs

connected?(name :: atom()) :: true | false
Link to this function

do_init(start, parent, parent_data, data)

Link to this function

get_start_state(start, override)

Link to this function

remove_cast_requests(requests)

Link to this function

send_request(name, request, timeout)

Specs

send_request(
  name :: atom() | pid(),
  request :: Wampex.message(),
  timeout :: integer()
) :: term()
Link to this function

start(data, opts)

Link to this function

start(name, data, opts)

Link to this function

start_link(data)

Link to this function

start_link(data, opts)

Link to this function

start_link(name, data, opts)