RelayClient

constructor(pointer: <Error class: unknown class>)


constructor(noPointer: NoPointer)

This constructor can be used to instantiate a fake object. Only used for tests. Any attempt to actually use an object constructed this way will fail as there is no connected Rust object.


constructor(serverUrl: String, authToken: String?)

Creates a new RelayClient instance.

Parameters

  • server_url: Base URL for the Relay API.

  • auth_token: Optional relay-scoped access token (see struct docs).

Returns

A new `RelayClient` configured for the specified server and token.