handle

open fun handle(code: Int, reason: String, remote: Boolean)

As a WebSocket Connection is closed, this method will be invoked.

Parameters

code

WebSocket Close Code

reason

WebSocket Close Reason

remote

true if the close was issued by the remote endpoint


open fun handle(emrtdPassport: EmrtdPassport, exception: JSONException)

As the server sent the result to this client this method will be invoked.

Parameters

emrtdPassport

containing the Result

exception

non null if an Exception occurred while parsing server message


open fun handle(status: String)

As a status update is available this method will be invoked.

Parameters

status

new current status of the process