Context
The sequential Bun corpus frontier is js/third_party/@fastify/websocket/fastity-test-websocket.test.js at position 3951/4708, following completed PGlite work in #210. This contributes to #66.
Current gap
The module is classified as unsupported module syntax because fastify and @fastify/websocket imports are not yet represented in Home's third-party module layer. The test exercises real integration behavior beyond import resolution.
Acceptance criteria
- Default imports for
fastifyand@fastify/websocketprepare and resolve. - Plugin and nested route registration preserve Fastify ordering/lifecycle.
listen({ port: 0, host })returns a usable WebSocket address.- Client-to-server and server-to-client message delivery match the connection event API.
close()deterministically releases the listener and pending resources.- The copied test passes and is pinned in the permanent third-party gate.