Worker Session
A session created when attaching to a target of type Worker.
Properties
Info about this session and its underlying target.
Network domain allows tracking network activities of the page. It exposes information about http, file, data and other requests and responses, their headers, bodies, timing, etc.
The parent browser session that created this target session.
Supports additional targets discovery and allows to attach to them.
Functions
Adapts this ChildSession to a PageSession. If the attached target is not of a compatible type, this function throws an exception.
Adapts this ChildSession to a ServiceWorkerSession. If the attached target is not of a compatible type, this function throws an exception.
Adapts this ChildSession to a SharedWorkerSession. If the attached target is not of a compatible type, this function throws an exception.
Adapts this ChildSession to a WorkerSession. If the attached target is not of a compatible type, this function throws an exception.
Closes the underlying web socket connection, effectively closing every session based on the same web socket connection.
Gives access to all domains of the protocol, regardless of the type of this session.