live-session
The framework-agnostic client for Aperture live sessions.
npm install @aperture-browser/live-session effect- The
aperture-session.v1protocol, decoded with Effect Schema. LiveSessionConnection.make, a scoped Effect that connects over WebRTC and falls back to WebSocket raster frames. ItsbaseUrloption targets an instance on another origin.- Helpers that map DOM keyboard and pointer events to browser input messages, and the viewport math for scaling between the page and the remote browser.
Failures are LiveSessionErrors with a message.
For a ready-made UI, or a React hook over this client, see session-react. Requires effect 4.