Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

DenoServer

interfaz

Servidor Deno en marcha que devuelve serveDeno.

ts
import type { DenoServer } from "@meekojs/meeko/deno";

Source code src/deno.ts:85

Declaración #

ts
interface DenoServer {
	readonly url: string
	readonly finished: Promise<void>
	close(): Promise<void>
}

Example #

ts
const server = await serveDeno(app, { port: 0 });
console.log(server.url);
await server.close();
await server.finished;

Miembros #

url #

propiedad sólo lectura

readonly url: string

URL local en la que escucha.

finished #

propiedad sólo lectura

readonly finished: Promise<void>

Se resuelve cuando el servidor HTTP se ha detenido.

close #

método

close(): Promise<void>

Cierra los peers de Socket con 1001 y HTTP, espera las tareas en segundo plano y cierra la aplicación.

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/deno.ts