Restate Typescript SDK
    Preparing search index...
    • Serves this Restate services as HTTP2 server, listening to the given port.

      If the port is undefined, this method will use the port set in the PORT environment variable. If that variable is undefined as well, the method will default to port 9080.

      The returned promise resolves with the bound port when the server starts listening, or rejects with a failure otherwise.

      If you need to manually control the server lifecycle, we suggest to manually instantiate the http2 server and use createEndpointHandler.

      Parameters

      • options: ServeOptions

        Configuration options for the endpoint handler.

      Returns Promise<number>

      a Promise that resolves with the bound port, or rejects with a failure otherwise.