Skip to content

Commit

Permalink
fix(cloudflare-workers): Update websocket.ts to return 101 status code (
Browse files Browse the repository at this point in the history
#2886)

Closes #2883
  • Loading branch information
ronkeiser authored Jun 2, 2024
1 parent 320b945 commit eb3d856
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/adapter/cloudflare-workers/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const upgradeWebSocket: UpgradeWebSocket = (createEvents) => async (c, ne
// @ts-expect-error - server.accept is not typed
server.accept?.()
return new Response(null, {
status: 101,
// @ts-expect-error - webSocket is not typed
webSocket: client,
})
Expand Down

0 comments on commit eb3d856

Please sign in to comment.