async-call-rpc

A lightweight JSON RPC client & server

Home > async-call-rpc > notify

notify() function

Wrap the AsyncCall instance to send notification.

Signature:

export declare function notify<T extends object>(instanceOrFnOnInstance: T): _IgnoreResponse<T>;

Parameters

Parameter Type Description
instanceOrFnOnInstance T The AsyncCall instance or function on the AsyncCall instance

Returns:

_IgnoreResponse<T>

Example

const notifyOnly = notify(AsyncCall(…))