dioxus/packages/liveview
Seungwoo Kang 31780b3ede
liveview: Add `interpreter_glue_relative_uri (#1481)
* 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
2023-09-26 16:35:17 -05:00
..
.vscode feat: liveview working with warp 2022-03-15 01:02:44 -04:00
examples liveview: Add `interpreter_glue_relative_uri (#1481) 2023-09-26 16:35:17 -05:00
src liveview: Add `interpreter_glue_relative_uri (#1481) 2023-09-26 16:35:17 -05:00
Cargo.toml fix: Update doc links from v3 to v4 2023-09-16 19:03:27 +02:00
CHANGELOG.md Release dioxus-core v0.1.3, dioxus-core-macro v0.1.2, dioxus-html v0.1.0, dioxus-desktop v0.0.0, dioxus-hooks v0.1.3, dioxus-liveview v0.1.0, dioxus-mobile v0.0.0, dioxus-router v0.1.0, dioxus-ssr v0.1.0, dioxus-web v0.0.0, dioxus v0.1.1 2021-12-15 16:07:09 -05:00
README.md fix: Update doc links from v3 to v4 2023-09-16 19:03:27 +02:00

Dioxus Liveview

Crates.io MIT licensed Build Status Discord chat

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.