← Back to SmartCardEmulation domain

SmartCardEmulation.reportConnectResult

Reports the successful result of a |SCardConnect| call. This maps to: PC/SC Lite: https://pcsclite.apdu.fr/api/group__API.html#ga4e515829752e0a8dbc4d630696a8d6a5 Microsoft: https://learn.microsoft.com/en-us/windows/win32/api/winscard/nf-winscard-scardconnecta

Domain: SmartCardEmulation experimental

Parameters

NameTypeDescription
requestIdstring
handleinteger
activeProtocol (optional)Protocol

Example Request

{
  "id": 1,
  "method": "SmartCardEmulation.reportConnectResult",
  "params": {
    "requestId": "request-1",
    "handle": "stream-handle"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('SmartCardEmulation.reportConnectResult', {"requestId": "request-1", "handle": "stream-handle"});
console.log(result);