Intercepts matching commands and forwards them to the backend as JSON.
The backend receives { command, target, payload } and returns { ok, state, error }.
Features: multi-source CSRF token reading (meta tag / cookie / hidden input),
automatic CSRF-expiry refresh on HTTP 419 (Laravel Sanctum convention by
default, configurable for other frameworks), session-expiry detection on
401, Retry-After header support, request timeout, per-call AbortSignal,
jittered exponential backoff.
createHttpBridge — fetch-based transport plugin.
Intercepts matching commands and forwards them to the backend as JSON. The backend receives
{ command, target, payload }and returns{ ok, state, error }.Features: multi-source CSRF token reading (meta tag / cookie / hidden input), automatic CSRF-expiry refresh on HTTP 419 (Laravel Sanctum convention by default, configurable for other frameworks), session-expiry detection on 401, Retry-After header support, request timeout, per-call AbortSignal, jittered exponential backoff.