IMQLocalService interface

A service this process serves itself, as a client in the same process reaches it.

Signature:

export interface IMQLocalService 

Remarks

Registered by a service started with IMQServiceOptions.local, and found by name by every client in the process. The contract is this object and nothing else, because the service and its client need not share one copy of this package: a host that loads a service from its own directory loads that service's own @imqueue/rpc beside the host's, and both see one registry.

Properties

Property

Modifiers

Type

Description

name

readonly

string

The service name, which is also its queue name.

Methods

Method

Description

call(request)

Answers one request as the service would through its queue.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.