{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-websocket-codec-frames-encode",
  "title": "Encode WebSocket Frame List",
  "section": "Library asset reference",
  "description": "Pure functional list insert. Required frame fields and maximum100 count are enforced by the named type. Uses native Node 24 WebSocket client. No arbitrary handshake headers, TLS bypass, distributed listener or exactly-once guarantee. Use ur",
  "kind": "node",
  "url": "/wiki/reference-websocket-codec-frames-encode/",
  "markdown": "/wiki/reference-websocket-codec-frames-encode/index.md",
  "json": "/wiki/reference-websocket-codec-frames-encode/index.json",
  "headings": [
    {
      "id": "audited-socket-contract-21-october-2026",
      "title": "Audited socket contract (21 October 2026)",
      "depth": 2
    },
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "inputs",
      "title": "Inputs",
      "depth": 2
    },
    {
      "id": "outputs",
      "title": "Outputs",
      "depth": 2
    },
    {
      "id": "configuration-schema",
      "title": "Configuration schema",
      "depth": 2
    },
    {
      "id": "source-and-installed-versions",
      "title": "Source and installed versions",
      "depth": 2
    }
  ],
  "sources": [
    "../OpenNodeFlow-Library/work/catalog-all.mjs",
    "../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs",
    "../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs",
    "shared/seed.ts",
    "shared/storage-library.ts",
    "shared/variable-library.ts",
    "shared/control-flow.ts",
    "shared/remote-routes.ts",
    "server/runtime-library.ts",
    "shared/error-library.ts",
    "shared/storage-model.ts",
    "shared/builtin-documentation.ts"
  ],
  "family": "websocket",
  "contract": {
    "key": "websocket.codec.frames.encode",
    "slug": "websocket-codec-frames-encode",
    "name": "Encode WebSocket Frame List",
    "kind": "node",
    "family": "websocket",
    "packId": null,
    "category": "WebSockets",
    "description": "",
    "inputs": [
      {
        "id": "exec",
        "name": "Execute",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "item",
        "name": "item",
        "type": "@websocket.type.frame",
        "typeName": "WebSocket Received Frame",
        "typeKey": "websocket.type.frame",
        "typeVersion": 1,
        "required": false
      },
      {
        "id": "rest",
        "name": "rest",
        "type": "@websocket.type.frames",
        "typeName": "WebSocket Frame List",
        "typeKey": "websocket.type.frames",
        "typeVersion": 1,
        "required": false
      },
      {
        "id": "index",
        "name": "index",
        "type": "number",
        "typeName": "Number",
        "required": false
      }
    ],
    "outputs": [
      {
        "id": "next",
        "name": "Next",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value",
        "name": "value",
        "type": "@websocket.type.frames",
        "typeName": "WebSocket Frame List",
        "typeKey": "websocket.type.frames",
        "typeVersion": 1,
        "required": true
      },
      {
        "id": "error",
        "name": "On error",
        "type": "control",
        "typeName": "Control",
        "required": false
      }
    ],
    "configSchema": {},
    "documentation": "Pure functional list insert. Required frame fields and maximum100 count are enforced by the named type.\n\nUses native Node 24 WebSocket client. No arbitrary handshake headers, TLS bypass, distributed listener or exactly-once guarantee. Use urlSecret/subscribeSecret for protected values. Errors and health omit raw remote errors, URLs and credential payloads. wss:// required except ws:// loopback mocks. Existing provider JSON types are reused. These v1 assets preserve exact socket/type/executor pins. Verified with isolated fixtures; external account access is unverified.\n\n## Audited socket contract (21 October 2026)\n\nInputs:\n- `item`: `@websocket.type.frame`; optional (absent stays absent).\n- `rest`: `@websocket.type.frames`; optional (absent stays absent).\n- `index`: `number`; optional (absent stays absent).\n\nOutputs:\n- `value`: `@websocket.type.frames`; required.\n\nConfiguration:\nNo asset-specific configuration.\n\nKnown provider records and list elements have structural schemas. Explicit dynamic payloads, selected query results and provider extensions retain the recursive JSON Value vocabulary; they do not imply a known provider entity. Null is distinct from omission. Runtime validates the exact selected immutable type version; reading newer documentation never repins existing graphs. This audit used synthetic fixtures/local mocks and does not establish live provider authorization or delivery.",
    "runtime": "javascript",
    "tags": [
      "codec",
      "encode",
      "library-expansion",
      "websocket"
    ],
    "source": "baseline-catalog"
  }
}
