-
Does Leptos support streaming events from server to client (maybe in form of a server function returning a signal getter (on client side) instead of an ordinary value)? Or is it planned for the future? This would be really nice for building chat applications or something similar. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yeah take a look at the I don't have a plan at the moment to provide additional wrappers for this kind of behavior in the framework but it would be feasible to do in userland or as a library. |
Beta Was this translation helpful? Give feedback.
Yeah take a look at the
<MultiuserCounter/>
component in this example. It is using server-sent events (SSE) and an EventSource to do the kind of thing you're talking about.I don't have a plan at the moment to provide additional wrappers for this kind of behavior in the framework but it would be feasible to do in userland or as a library.