async-call-rpc

A lightweight JSON RPC client & server

Home > async-call-rpc > AsyncCallOptions > preferLocalImplementation

AsyncCallOptions.preferLocalImplementation property

Prefer local implementation than remote.

Signature:

preferLocalImplementation?: boolean;

Remarks

If you call a RPC method and it is also defined in the local, open this flag will call the local implementation directly instead of send a RPC request. No logs / serialization will be performed if a local implementation is used.