Skip to content

Commit

Permalink
Deno handlers are bidirectional
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman committed Jul 25, 2024
1 parent 42c1d15 commit 761d68f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/deno/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { Context, endpoint, service } from "npm:@restatedev/restate-sdk@^1.1.1/fetch";
import {
Context,
endpoint,
service,
} from "npm:@restatedev/restate-sdk@^1.1.2/fetch";

// Template of a Restate service and handler
//
Expand All @@ -14,6 +18,6 @@ const greeter = service({
},
});

const handler = endpoint().bind(greeter).handler();
const handler = endpoint().bind(greeter).bidirectional().handler();

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

0 comments on commit 761d68f

Please sign in to comment.