← All demos

🍡 mochi

SERVER | DEV

Real-time Streams

Lazy Hydrate

A WebSocket clock and a Server-Sent Events clock side by side. The component hydrates lazily — JS and CSS load only when it scrolls into view.

WebSocket connecting
--:--:-- /ws/time
SSE connecting
--:--:-- /sse/time
island-id: mochi-mrZ11GQ6-0