Repository for Workerd issue cloudflare/workerd#1009
This repository has 3 parts:
-
Client (stenciljs)
starts websocket
Key code is in profile.tsx -
Pages function open
receives websocket request & forwards to durable object
Code is in open.ts -
durable object my_do
terminates websocket request
code is in index.ts
To create repository
- clone repository
npm install
in root directory
To start the project:
- In terminal window #1
a. cd packages/my_do
b. npm start - In terminal window #2
a. cd /
b. sh ./build.sh
c. wait for build to complete on browser
d. close browser window
e. go back to terminal and click b to start browser window - In browsser window open up console window
- Click on profile button
You will see console logs in both the browser (client) and the my_do terminal. workerd error will appear on the my_do terminal (#1).