Client-Side API

The Server-Side Smart Card Middleware adds one entry point to the usual JavaScript SCWS API, that will handle the APDU command relaying mechanism.

Token.processServerSession(ulrServer)

Handles the APDU command relaying mechanism.

This method should be called when a handle on a SCSSSession is obtained. This will allow the server-side session to be processed.

Arguments:
  • ulrServer – The URL of the server-side entry point that takes care of the call to the SCSSSession.process method.

Returns:

A Promise resolved when the entire server-side session is complete. Once the promise is resolved, further operations through the client-side SCWS can be made again.