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.

NodeServer

interfaz

Servidor Node en marcha que devuelve serveNode.

ts
import type { NodeServer } from "@meekojs/meeko/node";

Source code src/node.ts:319

Declaración #

ts
interface NodeServer {
	readonly server: Server
	readonly url: string
	close(): Promise<void>
}

Example #

ts
const node = await serveNode(app, { port: 0 });
console.log(`Escuchando en ${node.url}`);
await node.close();

Miembros #

server #

propiedad sólo lectura

readonly server: Server

Servidor HTTP de Node.

url #

propiedad sólo lectura

readonly url: string

URL local en la que escucha.

close #

método

close(): Promise<void>

Cierra los peers de Socket 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/node.ts