Skip to content

Commit

Permalink
Fix Durable Object dev registry websockets (#2989)
Browse files Browse the repository at this point in the history
  • Loading branch information
GregBrimble committed Apr 11, 2023
1 parent fb91726 commit 86e942b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/unlucky-boats-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

fix: Durable Object proxying websockets over local dev registry
4 changes: 2 additions & 2 deletions packages/wrangler/src/miniflare-cli/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { fetch } from "@miniflare/core";
import {
DurableObjectNamespace,
DurableObjectStub,
} from "@miniflare/durable-objects";
import { upgradingFetch } from "@miniflare/web-sockets";
import {
Log as MiniflareLog,
LogLevel as MiniflareLogLevel,
Expand Down Expand Up @@ -87,7 +87,7 @@ async function main() {
id.toString()
);

return fetch(request);
return upgradingFetch(request);
};
return stub;
};
Expand Down

0 comments on commit 86e942b

Please sign in to comment.