Fix method name

`startServer` method doesn't exist on JavaScript `DaprServer` (method name is `start` - see https://docs.dapr.io/developing-applications/sdks/js/js-server/#bindings-api)

Signed-off-by: Stuart Leeks <stuartle@microsoft.com>
This commit is contained in:
Stuart Leeks 2023-12-07 09:05:14 +00:00 committed by GitHub
parent 6460169263
commit 2bbff4b3ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ async function start() {
}
});
await server.binding.receive('checkout', async (orderId) => console.log(`Received Message: ${JSON.stringify(orderId)}`));
await server.startServer();
await server.start();
}
```
@ -292,4 +292,4 @@ Event delivery guarantees are controlled by the binding implementation. Dependin
- [Bindings building block]({{< ref bindings >}})
- [Bindings API]({{< ref bindings_api.md >}})
- [Components concept]({{< ref components-concept.md >}})
- [Supported bindings]({{< ref supported-bindings >}})
- [Supported bindings]({{< ref supported-bindings >}})