Tungsten v0.1.0 Tungsten.CDP.ServiceWorker View Source

ServiceWorker

This domain has no documentation

Link to this section Summary

Link to this section Types

Link to this type

cdp_registration_id_type() View Source
cdp_registration_id_type() :: String.t()

ServiceWorker.RegistrationID

This type has no documentation

Link to this type

cdp_service_worker_error_message_type() View Source
cdp_service_worker_error_message_type() :: %{
  error_message: String.t(),
  registration_id: cdp_registration_id_type(),
  version_id: String.t(),
  source_url: String.t(),
  line_number: integer(),
  column_number: integer()
}

ServiceWorker.ServiceWorkerErrorMessage

ServiceWorker error message.

Link to this type

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()
}

ServiceWorker.ServiceWorkerRegistration

ServiceWorker registration.

Link to this type

cdp_service_worker_version_running_status_type() View Source
cdp_service_worker_version_running_status_type() ::
  :stopping | :running | :starting | :stopped

ServiceWorker.ServiceWorkerVersionRunningStatus

This type has no documentation

Link to this type

cdp_service_worker_version_status_type() View Source
cdp_service_worker_version_status_type() ::
  :redundant | :activated | :activating | :installed | :installing | :new

ServiceWorker.ServiceWorkerVersionStatus

This type has no documentation

Link to this type

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()
}

ServiceWorker.ServiceWorkerVersion

ServiceWorker version.

Link to this section Functions

Link to this function

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()}

ServiceWorker.deliverPushMessage

This command has no documentation

Link to this function

disable(session, parameters \\ %{}, options \\ []) View Source
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, map()} | {:error, term()}

ServiceWorker.disable

This command has no documentation

Link to this function

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()}

ServiceWorker.dispatchSyncEvent

This command has no documentation

Link to this function

enable(session, parameters \\ %{}, options \\ []) View Source
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, map()} | {:error, term()}

ServiceWorker.enable

This command has no documentation

Link to this function

inspect_worker(session, parameters, options \\ []) View Source
inspect_worker(
  GenServer.server(),
  %{version_id: String.t()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

ServiceWorker.inspectWorker

This command has no documentation

Link to this function

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()}

ServiceWorker.setForceUpdateOnPageLoad

This command has no documentation

Link to this function

skip_waiting(session, parameters, options \\ []) View Source
skip_waiting(
  GenServer.server(),
  %{scope_url: String.t()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

ServiceWorker.skipWaiting

This command has no documentation

Link to this function

start_worker(session, parameters, options \\ []) View Source
start_worker(
  GenServer.server(),
  %{scope_url: String.t()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

ServiceWorker.startWorker

This command has no documentation

Link to this function

stop_all_workers(session, parameters \\ %{}, options \\ []) View Source
stop_all_workers(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, map()} | {:error, term()}

ServiceWorker.stopAllWorkers

This command has no documentation

Link to this function

stop_worker(session, parameters, options \\ []) View Source
stop_worker(
  GenServer.server(),
  %{version_id: String.t()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

ServiceWorker.stopWorker

This command has no documentation

Link to this function

unregister(session, parameters, options \\ []) View Source
unregister(
  GenServer.server(),
  %{scope_url: String.t()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

ServiceWorker.unregister

This command has no documentation

Link to this function

update_registration(session, parameters, options \\ []) View Source
update_registration(
  GenServer.server(),
  %{scope_url: String.t()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

ServiceWorker.updateRegistration

This command has no documentation