# localService() function · @imqueue/rpc

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

The service this process serves under the given name, if it serves one.

**Signature:**

```typescript
export declare function localService(name: string): IMQLocalService | undefined;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| name | string | the service (queue) name |


**Returns:**

[IMQLocalService](https://imqueue.org/api/rpc/latest/rpc.imqlocalservice/) \| undefined

