MCPcopy
hub / github.com/callstack/agent-device / ownsDevice

Method ownsDevice

src/cloud-webdriver/runtime.ts:178–180  ·  view source on GitHub ↗
(device: DeviceInfo)

Source from the content-addressed store, hash-verified

176 }
177
178 ownsDevice(device: DeviceInfo): boolean {
179 return [...this.sessionsByLeaseId.values()].some((session) => session.device.id === device.id);
180 }
181
182 getInteractor(device: DeviceInfo): Interactor | undefined {
183 return [...this.sessionsByLeaseId.values()].find((session) => session.device.id === device.id)

Callers 4

isActiveProviderDeviceFunction · 0.45
installProviderDeviceAppFunction · 0.45

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected