Tai.Venues.Streams.ConnectionAdapter behaviour (tai v0.0.75)

Link to this section Summary

Link to this section Types

Specs

msg() :: term()

Specs

phase() :: :init | atom()
Link to this type

received_at()

Specs

received_at() :: integer()

Specs

Link to this section Callbacks

Link to this callback

on_connect(t, state)

Specs

on_connect(WebSockex.Conn.t(), state()) :: {:ok, state()}
Link to this callback

on_disconnect(connection_status_map, state)

Specs

on_disconnect(WebSockex.connection_status_map(), state()) :: {:ok, state()}
Link to this callback

on_msg(msg, received_at, state)

Specs

on_msg(msg(), received_at(), state()) :: {:ok, state()}
Link to this callback

on_terminate(close_reason, state)

Specs

on_terminate(WebSockex.close_reason(), state()) :: {:ok, state()}
Link to this callback

subscribe(phase, state)

Specs

subscribe(phase(), state()) :: {:ok, state()}