Tungsten v0.1.0 Tungsten.CDP.ServiceWorker View Source
This domain has no documentation
Link to this section Summary
Link to this section Types
cdp_registration_id_type()
View Source
cdp_registration_id_type() :: String.t()
cdp_registration_id_type() :: String.t()
This type has no documentation
cdp_service_worker_error_message_type() View Source
ServiceWorker.ServiceWorkerErrorMessage
ServiceWorker error message.
cdp_service_worker_registration_type()
View Source
cdp_service_worker_registration_type() :: %{
registration_id: cdp_registration_id_type(),
scope_url: String.t(),
is_deleted: boolean()
}
cdp_service_worker_registration_type() :: %{
registration_id: cdp_registration_id_type(),
scope_url: String.t(),
is_deleted: boolean()
}
ServiceWorker.ServiceWorkerRegistration
ServiceWorker registration.
cdp_service_worker_version_running_status_type()
View Source
cdp_service_worker_version_running_status_type() ::
:stopping | :running | :starting | :stopped
cdp_service_worker_version_running_status_type() :: :stopping | :running | :starting | :stopped
ServiceWorker.ServiceWorkerVersionRunningStatus
This type has no documentation
cdp_service_worker_version_status_type()
View Source
cdp_service_worker_version_status_type() ::
:redundant | :activated | :activating | :installed | :installing | :new
cdp_service_worker_version_status_type() :: :redundant | :activated | :activating | :installed | :installing | :new
ServiceWorker.ServiceWorkerVersionStatus
This type has no documentation
cdp_service_worker_version_type()
View Source
cdp_service_worker_version_type() :: %{
:version_id => String.t(),
:registration_id => cdp_registration_id_type(),
:script_url => String.t(),
:running_status => cdp_service_worker_version_running_status_type(),
:status => cdp_service_worker_version_status_type(),
optional(:script_last_modified) => integer() | float(),
optional(:script_response_time) => integer() | float(),
optional(:controlled_clients) => [Tungsten.CDP.Target.cdp_target_id_type()],
optional(:target_id) => Tungsten.CDP.Target.cdp_target_id_type()
}
cdp_service_worker_version_type() :: %{
:version_id => String.t(),
:registration_id => cdp_registration_id_type(),
:script_url => String.t(),
:running_status => cdp_service_worker_version_running_status_type(),
:status => cdp_service_worker_version_status_type(),
optional(:script_last_modified) => integer() | float(),
optional(:script_response_time) => integer() | float(),
optional(:controlled_clients) => [Tungsten.CDP.Target.cdp_target_id_type()],
optional(:target_id) => Tungsten.CDP.Target.cdp_target_id_type()
}
ServiceWorker.ServiceWorkerVersion
ServiceWorker version.
Link to this section Functions
deliver_push_message(session, parameters, options \\ [])
View Source
deliver_push_message(
GenServer.server(),
%{
origin: String.t(),
registration_id: cdp_registration_id_type(),
data: String.t()
},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
deliver_push_message( GenServer.server(), %{ origin: String.t(), registration_id: cdp_registration_id_type(), data: String.t() }, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
ServiceWorker.deliverPushMessage
This command has no documentation
disable(session, parameters \\ %{}, options \\ [])
View Source
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
This command has no documentation
dispatch_sync_event(session, parameters, options \\ [])
View Source
dispatch_sync_event(
GenServer.server(),
%{
origin: String.t(),
registration_id: cdp_registration_id_type(),
tag: String.t(),
last_chance: boolean()
},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
dispatch_sync_event( GenServer.server(), %{ origin: String.t(), registration_id: cdp_registration_id_type(), tag: String.t(), last_chance: boolean() }, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
ServiceWorker.dispatchSyncEvent
This command has no documentation
enable(session, parameters \\ %{}, options \\ [])
View Source
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
This command has no documentation
inspect_worker(session, parameters, options \\ [])
View Source
inspect_worker(
GenServer.server(),
%{version_id: String.t()},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
inspect_worker( GenServer.server(), %{version_id: String.t()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
This command has no documentation
set_force_update_on_page_load(session, parameters, options \\ [])
View Source
set_force_update_on_page_load(
GenServer.server(),
%{force_update_on_page_load: boolean()},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
set_force_update_on_page_load( GenServer.server(), %{force_update_on_page_load: boolean()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
ServiceWorker.setForceUpdateOnPageLoad
This command has no documentation
skip_waiting(session, parameters, options \\ [])
View Source
skip_waiting(
GenServer.server(),
%{scope_url: String.t()},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
skip_waiting( GenServer.server(), %{scope_url: String.t()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
This command has no documentation
start_worker(session, parameters, options \\ [])
View Source
start_worker(
GenServer.server(),
%{scope_url: String.t()},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
start_worker( GenServer.server(), %{scope_url: String.t()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
This command has no documentation
stop_all_workers(session, parameters \\ %{}, options \\ [])
View Source
stop_all_workers(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
stop_all_workers(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
This command has no documentation
stop_worker(session, parameters, options \\ [])
View Source
stop_worker(
GenServer.server(),
%{version_id: String.t()},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
stop_worker( GenServer.server(), %{version_id: String.t()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
This command has no documentation
unregister(session, parameters, options \\ [])
View Source
unregister(
GenServer.server(),
%{scope_url: String.t()},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
unregister( GenServer.server(), %{scope_url: String.t()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
This command has no documentation
update_registration(session, parameters, options \\ [])
View Source
update_registration(
GenServer.server(),
%{scope_url: String.t()},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
update_registration( GenServer.server(), %{scope_url: String.t()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
ServiceWorker.updateRegistration
This command has no documentation