bunrest icon indicating copy to clipboard operation
bunrest copied to clipboard

websocket fails

Open ademola-lou opened this issue 8 months ago • 0 comments

websocket api fails, I think it might need this to work properly again https://github.com/lau1944/bunrest/blob/09e27426e081f61f8a9914518c80e9438875aba6/src/server/server.ts#L149

const success = server.upgrade(req1); if (success) { // Bun automatically returns a 101 Switching Protocols // if the upgrade succeeds return undefined; }

ademola-lou avatar Nov 03 '23 06:11 ademola-lou