docs(liveview): fixed adapter comments

Fixed some typos; added some word capitalization, periods, and ``.
This commit is contained in:
Andrew Voynov committed 2024-02-03 22:23:38 +03:00
1 parent d5c17af13c
commit c51e594fe3
4 files changed
+9 -9

No files matched your search

@@ -2,9 +2,9 @@ use crate::{LiveViewError, LiveViewSocket};
use axum::extract::ws::{Message, WebSocket};
use futures_util::{SinkExt, StreamExt};
/// Convert a warp websocket into a LiveViewSocket
/// Convert an Axum WebSocket into a `LiveViewSocket`.
///
/// This is required to launch a LiveView app using the warp web framework
/// This is required to launch a LiveView app using the Axum web framework.
pub fn axum_socket(ws: WebSocket) -> impl LiveViewSocket {
ws.map(transform_rx)
.with(transform_tx)