Replaced the http-client plugin, as it does not support keep-alive connections. Each request opened a new TCP connection to the service, which was inefficient. The new custom `send_tauri_http_request` command, exposed to the UI, uses an application-wide `reqwest::Client`, which supports idle (persistent) connections.
39 lines
998 B
JSON
39 lines
998 B
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "Capability for the main window",
|
|
"windows": [
|
|
"main",
|
|
"splash"
|
|
],
|
|
"remote": {
|
|
"urls": [
|
|
"http://localhost:817"
|
|
]
|
|
},
|
|
"permissions": [
|
|
"core:path:default",
|
|
"core:event:allow-listen",
|
|
"core:event:allow-unlisten",
|
|
"core:event:allow-emit",
|
|
"core:event:allow-emit-to",
|
|
"core:window:allow-hide",
|
|
"core:window:allow-show",
|
|
"core:window:allow-is-visible",
|
|
"core:window:allow-set-focus",
|
|
"core:window:allow-close",
|
|
"core:window:allow-get-all-windows",
|
|
"core:app:default",
|
|
"core:image:default",
|
|
"core:resources:default",
|
|
"core:menu:default",
|
|
"core:tray:default",
|
|
"shell:allow-open",
|
|
"notification:default",
|
|
"window-state:allow-save-window-state",
|
|
"window-state:allow-restore-state",
|
|
"clipboard-manager:allow-read-text",
|
|
"clipboard-manager:allow-write-text",
|
|
"websocket:default"
|
|
]
|
|
} |