Files

1.5 KiB

Containers API

Use the Container interface for the current SDK methods, signatures, properties, and examples. Use the Durable Object Container API when working directly with the runtime rather than the SDK class.

Task Documentation
Forward HTTP or WebSocket requests Request methods
Start a process, wait for ports, stop, or destroy it Start and stop
React to startup, exit, errors, or idle expiry Lifecycle hooks
Inspect state or keep background work active State and monitoring
Schedule callbacks without replacing the SDK's alarm handler Scheduling
Address named instances, select stateless instances, or switch request ports Utility functions
Communicate over TCP from a Durable Object TCP port API