View Source Kvasir.PubSub.Protocol behaviour (kvasir_pub_sub v0.0.1)
Link to this section Summary
Link to this section Callbacks
@callback handshake(transport :: term(), socket :: term()) :: {:ok, auth :: Kvasir.PubSub.credentials(), state :: term()} | {:error, atom()}
@callback port() :: pos_integer()
@callback run( transport :: term(), socket :: term(), state :: term(), server_state :: Kvasir.PubSub.server_state() ) :: :ok
@callback secure_port() :: pos_integer()