Skip to content
Get started
Get started
bunqueue v2.6.46
View Markdown
blog · release

bunqueue v2.6.46

Fixes 3 bugs. Cloud: resilient WebSocket with ring buffer, cloud: client-side ping heartbeat, cloud: dual-channel failover.

bun add bunqueue@2.6.46
npm install bunqueue@2.6.46
bun add bunqueue@latest

Cloud: resilient WebSocket with ring buffer

Section titled “Cloud: resilient WebSocket with ring buffer”

Events are buffered (max 1000) when WS is disconnected and flushed after handshake_ack on reconnect (with 5s fallback timeout). Zero event loss during brief disconnections.

Bunqueue sends { type: "ping" } every 10s to the dashboard; if no pong within 5s, closes socket and reconnects. Dead connection detection reduced from ~40s to ~10s.

When WS is down, buffered events are embedded in the HTTP snapshot (snapshot.events), so the dashboard stays informed even during prolonged disconnections.

  • Cloud: double reconnect race: Pong timeout no longer calls scheduleReconnect() directly; delegates to onclose to prevent duplicate sockets.
  • Cloud: local socket reference: All handlers (pong, handshake, commands) use the local ws variable, not this.ws, preventing replies on stale sockets after reconnect.
  • Cloud: old socket cleanup: Previous socket is explicitly closed and handlers nulled before creating a new connection.

← bunqueue v2.6.45 · Release on GitHub · Commits since v2.6.45 · Full changelog · All posts