Skip to content

Status events

Subscribe with BehavLabs.onStatus(callback). Every event also carries a stats snapshot (as getStats()).

type Payload Fired when
started userId Listeners attached.
session sessionId, transport: worker or main Handshake succeeded and the server config was applied.
sent n, wire, raw, duplicate A batch was acknowledged; wire and raw are bytes after and before compression.
retry error, inMs An upload failed transiently; the next attempt is in inMs.
dropped n Events discarded: queue overflow, or the API rejected a batch with 413 or 422.
blocked reason: consent or gpc start() declined.
refused status, error The handshake got a 401 or 403. The SDK stops and does not retry.
paused pause()
resumed resume()
stopped stop(), withdrawal or refusal.