Creates the adapter; nothing connects before Adapter.run.
The adapter configuration.
The runtime side.
Clock, source, inbox, outbox store, fetch, WebSocket and logger.
ReadonlyclientThe REST client; every request of a run's handler is bound to the run (07 SR9).
ReadonlyclockThe time source.
ReadonlyconfigThe adapter configuration.
ReadonlyhandlerThe runtime side.
ReadonlyinboxThe inbox of accepted events (and the jti store of the verifier).
ReadonlyoutboxThe outbox of replies and writes.
ReadonlysettingsThe resolved SDK settings.
The event source; set it before Adapter.run to wrap the default one.
The token check, created by Adapter.run.
Builds the source transport names, for a test to wrap before Adapter.run.
The gateway or polling source of this adapter.
ProblemError when the discovery failed.
Runs until the source stops or Adapter.stop is called.
Why the adapter stopped (for example 4015 when another process took the
consumer over, or 1000 after Adapter.stop).
ProblemError when the discovery or the first JWKS fetch failed.
Stops the source; Adapter.run returns after the current delivery. Handler work stops being awaited; an entry whose run has not started stays in the inbox for the next process (09 4.9).
A promise that resolves once the source is closing.
Connects an AgentHandler to the server.
Example