{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-websocket-codec-result-decode",
  "title": "Decode WebSocket Receive Result",
  "section": "Library asset reference",
  "description": "Pure functional decode of a compact named block. Field enums/required/null behavior are enforced by the named type schema. No side effect. Uses native Node 24 WebSocket client. No arbitrary handshake headers, TLS bypass, distributed listene",
  "kind": "node",
  "url": "/wiki/reference-websocket-codec-result-decode/",
  "markdown": "/wiki/reference-websocket-codec-result-decode/index.md",
  "json": "/wiki/reference-websocket-codec-result-decode/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.result.decode",
    "slug": "websocket-codec-result-decode",
    "name": "Decode WebSocket Receive Result",
    "kind": "node",
    "family": "websocket",
    "packId": null,
    "category": "WebSockets",
    "description": "",
    "inputs": [
      {
        "id": "exec",
        "name": "Execute",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "value",
        "name": "value",
        "type": "@websocket.type.result",
        "typeName": "WebSocket Receive Result",
        "typeKey": "websocket.type.result",
        "typeVersion": 1,
        "required": true
      }
    ],
    "outputs": [
      {
        "id": "next",
        "name": "Next",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "frames",
        "name": "frames",
        "type": "@websocket.type.frames",
        "typeName": "WebSocket Frame List",
        "typeKey": "websocket.type.frames",
        "typeVersion": 1,
        "required": true
      },
      {
        "id": "complete",
        "name": "complete",
        "type": "boolean",
        "typeName": "Boolean",
        "required": true
      },
      {
        "id": "reason",
        "name": "reason",
        "type": "string",
        "typeName": "Text",
        "required": true
      },
      {
        "id": "error",
        "name": "On error",
        "type": "control",
        "typeName": "Control",
        "required": false
      }
    ],
    "configSchema": {},
    "documentation": "Pure functional decode of a compact named block. Field enums/required/null behavior are enforced by the named type schema. No side effect.\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- `value`: `@websocket.type.result`; required.\n\nOutputs:\n- `frames`: `@websocket.type.frames`; required.\n- `complete`: `boolean`; required.\n- `reason`: `string`; 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",
      "decode",
      "library-expansion",
      "websocket"
    ],
    "source": "baseline-catalog"
  }
}
