You're seeing just the function start, go back to MLLP.Receiver module for more information.


start(options()) :: {:ok, map()} | {:error, any()}

Starts an MLLP.Receiver.

{:ok, info_map} = MLLP.Receiver.start(port: 4090, dispatcher: MLLP.EchoDispatcher)

If successful it will return a map containing the pid of the listener, the port it's listening on, and the receiver_id (ref) created, otherwise an error tuple. Note that this function is in constrast with child_spec/1 which can be used to embed MLLP.Receiver in your application or within a supervision tree as part of your application. This function is useful for starting an MLLP.Receiver from within a GenServer or for development and testing purposes. See Options for details on required and optiomal parameters.