mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-14 00:17:17 +00:00
31780b3ede
* liveview: Add `interpreter_glue_relative_uri` By utilizing `window.location.host` in the client-side JavaScript, we can easily derive the WebSocket URI from a relative path URI. This approach obviates the need for host address retrieval on the server side, unlike the method of serving glue code in liveview using `interpreter_glue`. * liveview: Merge `.._relative_url` functionality - Merged `.._relative_url` to current API `interpreter_glue`. - Edit axum example to work with new feature. * liveview: Fix clippy warning |
||
---|---|---|
.. | ||
.vscode | ||
examples | ||
src | ||
Cargo.toml | ||
CHANGELOG.md | ||
README.md |
Dioxus Liveview
Website | Guides | API Docs | Chat
Overview
dioxus-liveview
provides adapters for running the Dioxus VirtualDom over a WebSocket connection.
The current backend frameworks supported include:
- Axum
- Warp
- Salvo
Dioxus-LiveView exports some primitives to wire up an app into an existing backend framework.
- A ThreadPool for spawning the
!Send
VirtualDom and interacting with it from WebSockets - An adapter for transforming various socket types into the
LiveViewSocket
type - The glue to load the interpreter into your app
Contributing
- Report issues on our issue tracker.
- Join the discord and ask questions!
License
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Dioxus by you shall be licensed as MIT without any additional terms or conditions.