# registerLocalService() function · @imqueue/rpc

Source: https://imqueue.org/api/rpc/latest/rpc.registerlocalservice/
Published: 2026-11-12
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/rpc 3.11.0 — generated reference, not hand-written

Makes a service reachable in process under its name.

**Signature:**

```typescript
export declare function registerLocalService(service: IMQLocalService): void;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| service | [IMQLocalService](https://imqueue.org/api/rpc/latest/rpc.imqlocalservice/) | the service's local endpoint |


**Returns:**

void

## Remarks

A second service under the same name replaces the first, so that a service started again after it was destroyed is the one called.

