Skip to content

Usage Patterns

This documents the old v1 API. See Actor Handles for the current version.

const unsubscribe = client.on.system.notification((data) => {
toast(data.message);
});
unsubscribe();
const user = await client.users.get({ id: "123" });

Fixed 10-second RPC timeout. If the server never responds, the promise rejects.

If the handler returns void, the client method is typed as void:

client.analytics.track({ event: "click" });