ReadonlynameThe deployment name, as configured.
ReadonlyreadyResolves when the first handshake succeeds (the deployment is reachable from Restate Cloud and can be registered); rejects if the connection stops on a non-retryable failure before ever connecting. Useful for readiness checks; safe to ignore.
Stop reconnecting, close the current connections, and wait for teardown. Rejects with the fatal error if the connection had already stopped on a non-retryable failure (e.g. Restate Cloud rejected the key or the name).
Gracefully drain, then stop. Proactively sends HTTP/2 GOAWAY so Restate
Cloud stops opening new streams, refuses any raced streams with a drain
sentinel, lets in-flight invocations finish — bounded by graceMs
(default ConnectionOptions.drainGraceMs) — and then closes the
session gracefully. If the grace elapses first, the session/socket are
force-closed. The default ConnectionOptions.gracefulShutdown
handler wires this to SIGTERM; close is the abrupt alternative.
Rejects like close if the connection had already stopped on a
non-retryable failure.
Optionalopts: { graceMs?: number }
Handle returned by connect: the outbound connection to Restate Cloud serving your services.