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.

SocketRegistryOptions

interfaz

Opciones de createSocketRegistry y useSocketChannel, además de las del cliente.

ts
import type { SocketRegistryOptions } from "@meekojs/meeko/framework";

Source code src/app/runtime/socket.ts:152

Declaración #

ts
interface SocketRegistryOptions extends SocketClientOptions {
	readonly baseUrl?: string
	readonly pathnamePrefix?: string
	readonly roomId?: string
}

Example #

ts
import type { SocketRegistryOptions } from "@meekojs/meeko/framework";

const options: SocketRegistryOptions = { roomId: "general", baseUrl: "https://example.com" };

Propiedades #

baseUrl #

propiedad sólo lectura opcional

readonly baseUrl?: string

URL base HTTP(S) o WS(S). Por defecto, el origen actual del navegador.

pathnamePrefix #

propiedad sólo lectura opcional

readonly pathnamePrefix?: string

Prefijo de las rutas de los canales; por defecto, /_meeko/socket.

roomId #

propiedad sólo lectura opcional

readonly roomId?: string

Sala a la que se une el cliente (?room=).

See also #

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/app/runtime/socket.ts