CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/realtime-web-patterns

WebSocket vs SSE vs polling, reconnection with backoff and jitter, heartbeats, backpressure, message ordering, connection state UI, auth on upgrade, graceful degradation

94

1.87x
Quality

98%

Does it follow best practices?

Impact

90%

1.87x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

message-ordering.jsonverifiers/

{
  "instruction": "Enforce message ordering and deduplication for real-time messages",
  "relevant_when": "Agent implements real-time features where message order matters (chat, status updates, collaborative editing) or where reconnection can cause duplicate message delivery",
  "context": "Network issues and reconnection can cause messages to arrive out of order or be delivered twice. Without sequence numbers or timestamps, a stale update can overwrite a newer one. Without deduplication, the same message may be processed multiple times.",
  "sources": [
    {
      "type": "file",
      "filename": "skills/realtime-web-patterns/SKILL.md",
      "tile": "tessl-labs/realtime-web-patterns@0.2.0"
    }
  ],
  "checklist": [
    {
      "name": "sequence-or-timestamp-ordering",
      "rule": "Messages include a sequence number or timestamp, and the client rejects or reorders messages that arrive out of sequence rather than blindly applying every update",
      "relevant_when": "Agent implements real-time updates where ordering matters"
    },
    {
      "name": "deduplication-after-reconnect",
      "rule": "Client deduplicates messages using message IDs or sequence numbers to prevent processing the same message twice after reconnection",
      "relevant_when": "Agent implements real-time features with reconnection where duplicate delivery is possible"
    }
  ]
}

tile.json