BunServer.upgrade(request: Request,options: { data: BunSocketData; headers?: Headers; }): boolean
Upgrades an inbound request to a WebSocket.
Optional so a host injected before this seam existed still satisfies the interface; when absent, the adapter refuses upgrades with 501.
request: Request
The native, undisturbed upgrade request
options: { data: BunSocketData; headers?: Headers; }
Per-socket data and response headers for the handshake