options: table
Table Field | Type | Required | Description |
---|---|---|---|
link_id | string | – | Identifier of a new link. If it’s not defined then a new id will be generated. |
handler | string | + | Path to a plugin’s Lua script file which should be executed when any new data will come ( in HUB:my_plugin/http_receive.lua format ) |
user_data | any | – | Any data which will be passed to receive_script, send_script and any event. Can be of any valid type: string, number, boolean, array, object. If is null, the value will not be set. |
timeout | int | – | Timeout in milliseconds for keeping the connection open. Default value: 30000 milliseconds. Max possible value: 3600000 milliseconds. |
answer | boolean | – | Need to wait for an answer from the plugin or the connection can be closed. Default value: false. |