ClientWorker class represents a worker (the Uplink SDK running on a physical device) connected to your Uplink session. It provides methods for managing browsers on the worker and querying device information.
A worker is an instance of the Uplink SDK running on a physical iOS or Android device. A device can create multiple workers when connecting to sessions.
Browser operations
worker.launch()
Launches a new browser on this worker. Used when listening for worker-connected events from the Client class.
Promise<Browser> - New browser instance
Example:
worker.browsers()
Lists all browsers currently running on this worker.
Promise<Browser[]> - Array of browser instances
Example:
Device information
worker.getDeviceInfo()
Gets device information including model, platform, and OS version.
Promise<WorkerInfo> - Device information object
Example:
WorkerInfo type
Worker management
worker.terminate()
Terminates this worker’s connection to the session.
Promise<void>
Example:
Properties
worker.address
The unique hex-encoded address identifier for this worker.
Related
Client
Session and connection management
Browser
Browser operations
Device management
Device management patterns
Core concepts
Architecture overview