tauri/examples/streaming
Lucas Fernandes Nogueira fedf93eb7e
refactor(core): return 200 on any IPC call, closes #10286 (#10585)
* refactor(core): return 200 on any IPC call, closes #10286

By default the webview prints a `Failed to load resource: the server responded with a status of 400 (Bad Request) ipc://localhost` error message when a command returns an error, which is confusing to users.

This changes the IPC to return status 200 on any call, with a header to indicate whether the result was ok or not. This removes the console error, which would only log the actual error result if it isn't caught by the user.

* add change file

* apply code review changes
2024-08-13 08:39:20 -03:00
..
index.html refactor(api)!: Rename primitives mod to core (#8273) 2023-11-20 17:53:13 -03:00
main.rs refactor(core): return 200 on any IPC call, closes #10286 (#10585) 2024-08-13 08:39:20 -03:00
README.md fix(core): set correct mimetype for asset protocol streams, #5203 (#5536) 2022-11-04 12:35:45 -03:00
tauri.conf.json feat(core): implement new config structure (#8723) 2024-02-03 00:39:48 -03:00

Streaming example

A simple Tauri Application showcase the streaming functionality.

To execute run the following on the root directory of the repository: cargo run --example streaming.

By default the example uses a custom URI scheme protocol. To use the builtin asset protocol, run cargo run --example streaming --features protocol-asset.