Skip to content

Commit 761d68f

Browse files
committed
Deno handlers are bidirectional
1 parent 42c1d15 commit 761d68f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

templates/deno/main.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import { Context, endpoint, service } from "npm:@restatedev/restate-sdk@^1.1.1/fetch";
1+
import {
2+
Context,
3+
endpoint,
4+
service,
5+
} from "npm:@restatedev/restate-sdk@^1.1.2/fetch";
26

37
// Template of a Restate service and handler
48
//
@@ -14,6 +18,6 @@ const greeter = service({
1418
},
1519
});
1620

17-
const handler = endpoint().bind(greeter).handler();
21+
const handler = endpoint().bind(greeter).bidirectional().handler();
1822

1923
Deno.serve({ port: 9080 }, handler.fetch);

0 commit comments

Comments
 (0)