> For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

# notify

> Send a fire-and-forget JSON-RPC notification to RELAY.

[execute]: /docs/server-sdks/reference/typescript/relay/client/execute

Send a fire-and-forget JSON-RPC notification to the RELAY server. No response is
awaited. The call no-ops when the socket is closed.

Production code should almost always use [`execute()`][execute] instead, which
sends a request and checks the response. `notify()` is a low-level escape hatch
for cases where no response is expected.

## **Parameters**

The JSON-RPC method name.

Parameters for the notification.

## **Returns**

`void` -- fire-and-forget; no response is awaited.

## **Example**

```typescript {9}
import { RelayClient } from '@signalwire/sdk';

const client = new RelayClient({
  project: process.env.SIGNALWIRE_PROJECT_ID!,
  token: process.env.SIGNALWIRE_API_TOKEN!,
  contexts: ['default'],
});

client.notify('custom.method', { key: 'value' });
```