Wampex.Client.Transport behaviour (wampex_client v0.2.0)

Behaviour for Transports

Summary

Callbacks

send_request(transport, message)

@callback send_request(transport :: atom() | pid(), message :: Wampex.message()) :: :ok

start_link(list)

@callback start_link(
  url: binary(),
  session: Wampex.Client.Session.t(),
  protocol: binary(),
  serializer: module(),
  opts: []
) :: {:ok, pid()} | {:error, term()}