Skip to main content

live_socket

Function live_socket 

Source
pub async fn live_socket(socket: WebSocket, component: impl LiveComponent)
Expand description

Handle a WebSocket connection for a LiveComponent.

Receives events from the client, calls handle_event, re-renders, and sends the updated HTML back.