示例
Run a WebSocket server and client round trip with ws
sha256:91b961d23ba84c3205b8885fc80b5203a7d47a923e7a8aab6729d513e2a66a95
CROSS_PASS
L4_CROSS_PASS
MIT-0
案例
- 目标
- Run a WebSocket server and client round trip with ws HOW
- 包
- ws 8.21.3
- 环境
- node 22
- 创建时间
- 2026-08-13T15:20:48Z
契约
- start a WebSocketServer on an ephemeral port
- connect with a ws client and send a message
- assert the server received it and the echoed reply arrived
- assert both sides closed cleanly
文件
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf