handle_call


Description:

public virtual signal bool handle_call (string method, Variant id, Variant? @params)

This signal is emitted when an RPC has been received from the peer we are connected to.

Return true if you have handled this message, even asynchronously. If no handler has returned true an error will be synthesized.

If you handle the message, you are responsible for replying to the peer in a timely manner using [method@Client.reply] or [ method@Client.reply_async].

Additionally, since 3.28 you may connect to the "detail" of this signal to handle a specific method call. Use the method name as the detail of the signal.

Parameters:

method

The method name

id

The "id" field of the JSONRPC message

params

The "params" field of the JSONRPC message