relay
suspend fun relay(isoDep: IsoDep, can: String, pin: String, wsUrl: String, transport: NfcRelayTransport, onEvent: (ReadEvent) -> Unit? = null)
Run a v3 SSO relay session. The server drives all APDU exchanges; the app is a dumb pipe.
Requires the session WebSocket URL from the deep link (wss param), a caller-provided NfcRelayTransport (e.g. OkHttp WebSocket), and the user's CAN + auth PIN.
Parameters
iso Dep
Connected android.nfc.tech.IsoDep tag
can
Card Access Number (6 digits)
pin
Auth PIN (4 digits)
ws Url
WebSocket URL from deep link, e.g. wss://idp.eidkit.ro/v3/nfc-relay?session=<token>
transport
Caller-provided WebSocket implementation
on Event
Optional progress callback
Throws
if configure has not been called.