Bun compatibility slice
Port js/third_party/socket.io/socket.io-handshake.test.ts at exhaustive corpus position 4052.
Required behavior
- support Engine.IO polling GET and OPTIONS handshakes on a numeric-port
socket.ioserver; - emit configured CORS origin, methods, allowed headers, and credentials;
- honor callback-based
allowRequestapproval and rejection; - provide the fixture's SuperAgent request surface without bypassing Home's HTTP stack;
- retain causal, operation-tagged handshake diagnostics internally while returning a safe HTTP error body;
- add focused and permanent regression coverage.
Tracked from #66.