diff --git a/Cargo.toml b/Cargo.toml index 760e7ae..9c50ca5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -109,3 +109,7 @@ required-features = ["axum", "tracing"] [[example]] name = "rocket-hello" required-features = ["rocket"] + +[[example]] +name = "rocket-hello-channel" +required-features = ["rocket"] diff --git a/examples/hello-world-channel.html b/examples/hello-world-channel.html new file mode 100644 index 0000000..c744593 --- /dev/null +++ b/examples/hello-world-channel.html @@ -0,0 +1,42 @@ + + + + + +
++ SSE events will be streamed from the backend to the frontend. +
+