ObserverWeb.Apps.Port (Observer Web v0.1.5)

Retrieve Port information

Summary

Functions

Return port information

Functions

info(node \\ Node.self(), port)

@spec info(atom(), port()) ::
  :undefined | %{connected: any(), id: any(), name: any(), os_pid: any()}

Return port information

Examples

iex> alias ObserverWeb.Observer.Port ...> [h | ] = :erlang.ports() ...> assert %{connected: , id: , name: , ospid: } = Port.info(h) ...> assert :undefined = Port.info(nil) ...> assert :undefined = Port.info("")