RpcService

RpcService

Source:

Allows inter-service communication, allowing server start/stop/restart, etc...

Members

(private, static, constant) actions

Source:
Properties:
Name Type Description
actions Object

Allowed RPC actions are defined here

action.start_monitor function

Starts a registered monitor hook

action.stop_monitor function

Stops a registered monitor hook

action.restart_monitor function

Restarts a registered monitor hook

action.reload_hooks function

Reload hooks

(private, static) initialized

Source:
Properties:
Name Type Description
initialized Boolean

If initialized

Methods

(static) init(tapi) → {Promise}

Source:

Initialize Rpc manager

Parameters:
Name Type Description
tapi TelegramService

Link to Telegram service

Returns:
Type
Promise

(static) send(command, params) → {Promise}

Source:

send the command to the resident service, that will execute it and answer when completed/failed

Parameters:
Name Type Description
command string

Command to be executed.

params object

command line passed params.

Returns:
Type
Promise