PrCore Documentation
AI Assistant GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Online status update

The core will send a request to the plugin to update the online status of the plugin. The plugin will respond with the updated status.

sequenceDiagram
    loop Every 5 mintues
        Core->>Plugin: ONLINE_INQUIRY
        Plugin-->>Core: ONLINE_REPORT
    end

ONLINE_INQUIRY

The core will send this request when it starts, and periodically. The request data’s body is empty.

{}

ONLINE_REPORT

The plugin will send the basic information of the plugin, such as the name, type, and description. For example:

{
    "id": "example-plugin",
    "name": "Example Plugin",
    "type": "EXAMPLE",
    "description": "This is an example plugin",
    "parameters": {
        "param1": "value1",
        "param2": "value2"
    }
}