is register_uri_scheme_protocol routing with IPC ? #8571
-
Hi, I want to know is register_uri_scheme_protocol/register_async_uri_scheme_protocol routing with IPC? is there different in distribution version and debug version, for example, debug version is http debug by web server? Additional, If I already register a protocol with name "myapp", when I open a window with windowUrl parameter, can I pass the "myapp://localhost/sub1/index.html" or "myapp://sub1/index.html" ? thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
It should be, at least with the https://tauri.app/v1/api/config/#securityconfig.dangerousremotedomainipcaccess config (exists in v2 too). If it does not it's a bug we need to fix.
This will mostly depend on your, but generally no. debug and production versions will both use custom protocol with the same implementation behind the scenes. If you want it to use a http server you'll have to do that yourself (redirect, or a conditional window url config).
Probably the first one, but just try it out, maybe both work. |
Beta Was this translation helpful? Give feedback.
-
ok thankyou
…---- Replied Message ----
| From | ***@***.***> |
| Date | 01/09/2024 20:04 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [tauri-apps/tauri] is register_uri_scheme_protocol routing with IPC ? (Discussion #8571) |
does IPC's performance is better than http?
No, in v1 it's much slower than a http server. In v2 it's much faster compared to v1 but we didn't measure it yet so i can't tell how fast it is compared to a http server (should be relatively close though)
does IPC's safe is better than http?
Yes. As you said, not port etc. Only the webview itself can access the IPC as opposed to the whole system when using an http server.
If yes, In order to achieve the performance and safe goal, what should I do more?
for example: config ... and, want config should I research detail?
Can't think of anything general here. The ipc and custom protocols don't have much options config-wise so it should be mostly ready out of the box unless i'm forgetting something.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
No, in v1 it's much slower than a http server. In v2 it's much faster compared to v1 but we didn't measure it yet so i can't tell how fast it is compared to a http server (should be relatively close though)
Yes. As you said, not port etc. Only the webview itself can access the IPC as opposed to the whole system when using an http server.
Can't think of anything general here. The ipc and custom protocols don't have much options config-wise so it should be mo…