{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-websocket-type-result",
  "title": "WebSocket Receive Result",
  "section": "Library asset reference",
  "description": "Named WebSocket Receive Result block. Required fields are present; no undeclared fields. Uses native Node 24 WebSocket client. No arbitrary handshake headers, TLS bypass, distributed listener or exactly-once guarantee. Use urlSecret/subscri",
  "kind": "type",
  "url": "/wiki/reference-websocket-type-result/",
  "markdown": "/wiki/reference-websocket-type-result/index.md",
  "json": "/wiki/reference-websocket-type-result/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": "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.type.result",
    "slug": "websocket-type-result",
    "name": "WebSocket Receive Result",
    "kind": "type",
    "family": "websocket",
    "packId": null,
    "category": "WebSockets",
    "description": "",
    "inputs": [],
    "outputs": [],
    "configSchema": {},
    "documentation": "Named WebSocket Receive Result block. Required fields are present; no undeclared fields. \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:\nNo data sockets.\n\nOutputs:\nNo data sockets.\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.\n\nAuthoritative JSON Schema:\n\n```json\n{\n  \"type\": \"object\",\n  \"properties\": {\n    \"frames\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"eventId\": {\n            \"type\": \"string\"\n          },\n          \"kind\": {\n            \"type\": \"string\",\n            \"enum\": [\n              \"text\",\n              \"binary\"\n            ]\n          },\n          \"encoding\": {\n            \"type\": \"string\",\n            \"enum\": [\n              \"utf8\",\n              \"base64\"\n            ]\n          },\n          \"data\": {\n            \"type\": \"string\"\n          },\n          \"byteLength\": {\n            \"type\": \"integer\",\n            \"minimum\": 0\n          },\n          \"receivedAt\": {\n            \"type\": \"string\"\n          }\n        },\n        \"required\": [\n          \"eventId\",\n          \"kind\",\n          \"encoding\",\n          \"data\",\n          \"byteLength\",\n          \"receivedAt\"\n        ],\n        \"additionalProperties\": false\n      },\n      \"maxItems\": 100\n    },\n    \"complete\": {\n      \"type\": \"boolean\"\n    },\n    \"reason\": {\n      \"type\": \"string\",\n      \"enum\": [\n        \"limit\",\n        \"matched\",\n        \"timeout\",\n        \"peer_closed\"\n      ]\n    }\n  },\n  \"required\": [\n    \"frames\",\n    \"complete\",\n    \"reason\"\n  ],\n  \"additionalProperties\": false\n}\n```",
    "schema": {
      "type": "object",
      "properties": {
        "frames": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "eventId": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "text",
                  "binary"
                ]
              },
              "encoding": {
                "type": "string",
                "enum": [
                  "utf8",
                  "base64"
                ]
              },
              "data": {
                "type": "string"
              },
              "byteLength": {
                "type": "integer",
                "minimum": 0
              },
              "receivedAt": {
                "type": "string"
              }
            },
            "required": [
              "eventId",
              "kind",
              "encoding",
              "data",
              "byteLength",
              "receivedAt"
            ],
            "additionalProperties": false
          },
          "maxItems": 100
        },
        "complete": {
          "type": "boolean"
        },
        "reason": {
          "type": "string",
          "enum": [
            "limit",
            "matched",
            "timeout",
            "peer_closed"
          ]
        }
      },
      "required": [
        "frames",
        "complete",
        "reason"
      ],
      "additionalProperties": false
    },
    "runtime": "javascript",
    "tags": [
      "library-expansion",
      "type",
      "websocket"
    ],
    "source": "baseline-catalog"
  }
}
