SujalChoudhari/bxios ? reverse-engineered prompt

Reverse engineered prompt

Build me a TypeScript project that lets a browser or Node app talk to a server over WebSocket using binary MessagePack instead of plain JSON.

I want a small monorepo with a client, a server, and the shared wire format. The client should keep a connection open, reconnect automatically if needed, send simple request style calls, and also support streamed responses so the server can push back multiple values over time. The server should expose a way to define routes with decorators for things like GET, POST, query params, body, headers, and auth, then handle those requests over the socket.

Please include a working React example that connects to the server and shows streamed updates, plus a basic Node example too. Make it work with both browser WebSocket and Node WebSocket, and keep the protocol binary, not text. If you need current docs for WebSocket or MessagePack details, look them up online while you build it.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab