LiveDebugger.Services.LiveViewDiscoveryService (LiveDebugger v0.1.3)
View SourceThis module provides functions that discovers LiveView processes in the debugged application.
Summary
Functions
Returns all debugged LvProcesses.
Returns all LiveDebugger's LvProcesses.
Returns LvProcess associated the given socket_id
and transport_pid
.
When only socket_id
is provided, LvProcess with the given socket_id
is returned.
When more than one process is found, nil
is returned.
Returns all LiveView processes.
Finds potential successor LvProcess based on module when websocket connection breaks and new one is created. This is a common scenario when user recompiles code or refreshes the page
Functions
@spec debugged_lv_processes() :: [LiveDebugger.Structs.LvProcess.t()]
Returns all debugged LvProcesses.
@spec debugger_lv_processes() :: [LiveDebugger.Structs.LvProcess.t()]
Returns all LiveDebugger's LvProcesses.
@spec lv_process(socket_id :: String.t(), transport_pid :: pid() | nil) :: LiveDebugger.Structs.LvProcess.t() | nil
Returns LvProcess associated the given socket_id
and transport_pid
.
When only socket_id
is provided, LvProcess with the given socket_id
is returned.
When more than one process is found, nil
is returned.
@spec lv_processes() :: [LiveDebugger.Structs.LvProcess.t()]
Returns all LiveView processes.
@spec successor_lv_processes(module :: module()) :: [ LiveDebugger.Structs.LvProcess.t() ]
Finds potential successor LvProcess based on module when websocket connection breaks and new one is created. This is a common scenario when user recompiles code or refreshes the page