WebSocket Transport: Server-side upgrade handling
mainWhen building compliant WebSocket servers, use an upgrade hook rather than relying on an already-upgraded socket.
The example server uses createNodeWebSocketUpgradeHandler, which creates the ACP connection before the upgrade completes. This allows the server to add the Acp-Connection-Id header to the 101 Switching Protocols response. Frameworks that only expose the socket after the upgrade has finished cannot add this required header.