Skip to content

Commit

Permalink
websocket support in dev (#150)
Browse files Browse the repository at this point in the history
* websocket support

This resuscitates threepointone/nu-wrangler#19 via @Electroid. This probably needs tests, in a future PR. But it works well!

* Add a changeset

* update changeset
  • Loading branch information
threepointone authored Dec 21, 2021
1 parent 03b8851 commit 3752acf
Show file tree
Hide file tree
Showing 5 changed files with 253 additions and 95 deletions.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-dancers-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

Add support for websockets in `dev`, i.e. when developing workers. This replaces the proxy layer that we use to connect to the 'edge' during preview mode, using the `faye-wesocket` library.
174 changes: 107 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/wrangler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,18 @@
"devDependencies": {
"@iarna/toml": "^2.2.5",
"@types/react": "^17.0.37",
"@types/serve-static": "^1.13.10",
"@types/signal-exit": "^3.0.1",
"@types/ws": "^8.2.1",
"@types/yargs": "^17.0.7",
"chokidar": "^3.5.2",
"clipboardy": "^3.0.0",
"command-exists": "^1.2.9",
"execa": "^6.0.0",
"faye-websocket": "^0.11.4",
"finalhandler": "^1.1.2",
"find-up": "^6.2.0",
"formdata-node": "^4.3.1",
"http-proxy": "^1.18.1",
"ink": "^3.2.0",
"ink-select-input": "^4.2.1",
"ink-table": "^3.0.0",
Expand Down
Loading

0 comments on commit 3752acf

Please sign in to comment.