View Source Kvasir.PubSub.Protocol behaviour (kvasir_pub_sub v0.0.1)

Link to this section Summary

Link to this section Callbacks

Link to this callback

handshake(transport, socket)

View Source
@callback handshake(transport :: term(), socket :: term()) ::
  {:ok, auth :: Kvasir.PubSub.credentials(), state :: term()} | {:error, atom()}
@callback port() :: pos_integer()
Link to this callback

run(transport, socket, state, server_state)

View Source
@callback run(
  transport :: term(),
  socket :: term(),
  state :: term(),
  server_state :: Kvasir.PubSub.server_state()
) :: :ok
@callback secure_port() :: pos_integer()