fixed websocket docs

This commit is contained in:
Maccesch 2023-09-28 01:41:39 +01:00
parent eff44f42e0
commit 5eaa63f422

View file

@ -67,8 +67,8 @@ use web_sys::{BinaryType, CloseEvent, Event, MessageEvent, WebSocket};
/// <button on:click=open_connection disabled=connected>"Open"</button>
/// <button on:click=close_connection disabled=move || !connected()>"Close"</button>
///
/// <p>"Receive message: " {format! {"{:?}", message}}</p>
/// <p>"Receive byte message: " {format! {"{:?}", message_bytes}}</p>
/// <p>"Receive message: " {move || format!("{:?}", message())}</p>
/// <p>"Receive byte message: " {move || format!("{:?}", message_bytes())}</p>
/// </div>
/// }
/// # }