Hi,
I'm trying to get this template to work for localhost development, but so far I've been unsuccessful.
So far, I've taken the following steps:
- modify
wrangler.toml to include my accound_id
- change the websocket protocol from
wss to ws for running on localhost
- run
wrangler dev
However, when visit http://127.0.0.1:8787/ it throws a 400 as it's missing the upgrade header.
Any ideas on how to get rid of this? We want to try using webworker sockets for a multiplayer functionality at Candu, but I'm stuck on how to get setup on localhost development.
Hi,
I'm trying to get this template to work for localhost development, but so far I've been unsuccessful.
So far, I've taken the following steps:
wrangler.tomlto include myaccound_idwsstowsfor running on localhostwrangler devHowever, when visit http://127.0.0.1:8787/ it throws a 400 as it's missing the upgrade header.
Any ideas on how to get rid of this? We want to try using webworker sockets for a multiplayer functionality at Candu, but I'm stuck on how to get setup on localhost development.