Restate Typescript SDK
    Preparing search index...
    • Route all ingress calls/sends through a named scope. The in-handler scope(scopeKey) and this scope(ingress, scopeKey) produce the same .client(def) / .sendClient(def) shape, so handler and ingress code read identically (modulo the explicit ingress).

      Parameters

      Returns ScopedGenIngress

      await clients.scope(ingress, "tenant-123").client(Greeter).greet(name);
      await clients.scope(ingress, "tenant-123").client(Cart, "cart-42").add(item);