Class RAMClient
Defined in: RAMClient.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
RAMClient(card, url, session)
Create a client instance for attaching a card to a server via the RAMOverHTTP procotol
|
| Method Attributes | Method Name and Description |
|---|---|
|
close(id, msg)
Close connection, e.g.
|
|
|
setAPDULimit(aPDULimit)
Set a limiting number of APDU
This is helpful for testing to intercept processing after a certain number
of APDUs (Default 100000).
|
|
|
Set a notification listener.
|
|
|
update()
Perform update operation
|
Class Detail
RAMClient(card, url, session)
Create a client instance for attaching a card to a server via the RAMOverHTTP procotol
- Parameters:
- {Card} card
- the card instance to attach
- {String} url
- the URL to connect to
- {String} session
- the session cookie
Method Detail
close(id, msg)
Close connection, e.g. after exception on the client side
- Parameters:
- {Number} id
- the message id
- {String} msg
- the closing message
setAPDULimit(aPDULimit)
Set a limiting number of APDU
This is helpful for testing to intercept processing after a certain number
of APDUs (Default 100000).
- Parameters:
- {Number} aPDULimit
- the maximum number of APDU processing in update()
setNotificationListener(the)
Set a notification listener.
The listener object must implement a notificationReceived() method that
receives the three parameter id, msg and ttc.
- Parameters:
- {Object} the
- listener object implementing notificationReceived()
update()
Perform update operation