// 手元の関数を呼ぶ
const stats = getUserStats(123);
// サーバーの関数を呼ぶ(RPC)
const res = await fetch("https://example.com/rpc/getUserStats", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ user_id: 123 }),
});
const stats = await res.json();