async-call-rpc

A lightweight JSON RPC client & server

Home > async-call-rpc > AsyncCallStrictOptions > unknownMessage

AsyncCallStrictOptions.unknownMessage property

Controls if AsyncCall send an ErrorResponse when the message is not valid.

Signature:

unknownMessage?: boolean;

Remarks

If this option is set to false, AsyncCall will ignore the request that cannot be parsed as a valid JSON RPC payload. This is useful when the message channel is also used to transfer other kinds of messages.