Return the live Session: the current snapshot fields plus the
control methods (start, toggle, reset, resetState, disconnect,
cancel, end).
Throws if used outside the provider client() installs (the error names
<SessionProvider> — you only mount that yourself when bypassing
client()). Re-renders the component on every snapshot change; for a
component that reads one field, prefer useSessionSelector for a
targeted subscription.
Return the live Session: the current snapshot fields plus the control methods (
start,toggle,reset,resetState,disconnect,cancel,end).Throws if used outside the provider
client()installs (the error names<SessionProvider>— you only mount that yourself when bypassingclient()). Re-renders the component on every snapshot change; for a component that reads one field, prefer useSessionSelector for a targeted subscription.