mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-22 16:49:22 -05:00
Docs
This commit is contained in:
parent
b765dd5798
commit
b6d7ca340b
1 changed files with 5 additions and 0 deletions
|
@ -652,6 +652,11 @@ where
|
|||
/// Defaults to `true`.
|
||||
immediate: bool,
|
||||
/// Sub protocols. See [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket#protocols).
|
||||
///
|
||||
/// Can be set as a signal to support protocols only available after the initial render.
|
||||
///
|
||||
/// Note that protocols are only updated on the next websocket open() call, not whenever the signal is updated.
|
||||
/// Therefore "lazy" protocols should use the `immediate(false)` option and manually call `open()`.
|
||||
#[builder(into)]
|
||||
protocols: MaybeSignal<Option<Vec<String>>>,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue