From 2bbff4b3ea9e9434e332d1ec1c36e9544d9ccc38 Mon Sep 17 00:00:00 2001 From: Stuart Leeks Date: Thu, 7 Dec 2023 09:05:14 +0000 Subject: [PATCH] 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 --- .../building-blocks/bindings/howto-triggers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-triggers.md b/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-triggers.md index 56a24b0aece..70320818a3e 100644 --- a/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-triggers.md +++ b/daprdocs/content/en/developing-applications/building-blocks/bindings/howto-triggers.md @@ -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 >}}) \ No newline at end of file +- [Supported bindings]({{< ref supported-bindings >}})