XrpcClient

constructor(baseUrl: String, httpClient: HttpClient, json: Json = DefaultJson, authProvider: AuthProvider = NoAuth, errorListener: XrpcErrorListener? = null)

Parameters

baseUrl

Root URL of the PDS / AppView, e.g. https://bsky.social. No trailing /xrpc — the client appends it.

errorListener

Told about every call that finally fails with an XrpcError, after any auth retry, just before it is thrown. A 401 that a retry recovers never reaches it. Use it to report failures centrally.