mirror of https://github.com/dapr/docs.git
Update howto-publish-subscribe.md (#2990)
startServer() have been renamed to `start()` In 'DaprServer.ts' so this means `await server.startServer()` will now be called as `await server.start()` Signed-off-by: PATHAN SALMAN KHAN <54095769+salmankhan-prs@users.noreply.github.com> Signed-off-by: PATHAN SALMAN KHAN <54095769+salmankhan-prs@users.noreply.github.com>
This commit is contained in:
parent
0903f90992
commit
f1d7b02993
|
@ -357,7 +357,7 @@ async function start(orderId) {
|
|||
await server.pubsub.subscribe("order-pub-sub", "orders", async (orderId) => {
|
||||
console.log(`Subscriber received: ${JSON.stringify(orderId)}`)
|
||||
});
|
||||
await server.startServer();
|
||||
await server.start();
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue