Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dectyl/lib/deploy_worker.ts>DeployWorker#listen

Prototype library for testing Deno Deploy scripts using the Deno CLI
Latest
method DeployWorker.prototype.listen
import { DeployWorker } from "https://deno.land/x/dectyl@0.10.7/lib/deploy_worker.ts";

Start listening for requests, passing them to the worker and sending the responses back to the client.

Example:

const helloWorld = await createWorker("./helloWorld.ts");
await helloWorld.listen({ port: 8000 });

Parameters

options: ListenOptions

Returns

Promise<void>