https://github.com/fanweixiao/webtransport-serverless-demo
Demo for WebTransport.day serverless
https://github.com/fanweixiao/webtransport-serverless-demo
webtransport yomo
Last synced: 2 months ago
JSON representation
Demo for WebTransport.day serverless
- Host: GitHub
- URL: https://github.com/fanweixiao/webtransport-serverless-demo
- Owner: fanweixiao
- License: mit
- Created: 2022-08-01T07:56:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T06:18:51.000Z (over 1 year ago)
- Last Synced: 2024-06-21T18:15:21.426Z (11 months ago)
- Topics: webtransport, yomo
- Language: Go
- Homepage: https://webtransport.day/serverless
- Size: 1.2 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebTransport Serverless Demo

1. Open https://webtransport.day/serverless with Chrome latest version (at least verion 98).
1. Click `go to allegro cloud`,reirect to https://allegrocloud.io console.
1. Click `Sign Up` -> `Continue With GitHub` to login with your Github Account.
1. Click `+ New Project` to create a new Geo-distributed Service.
1. In the detail page of project, you will get `Zipper Address`, `App Key` and `App Secret`.
1. Back to https://webtransport.day/serverless and paste values.
1. Click `Connect` to create the webtransport connection.
1. Type `hello world` below `Send data over WebTransport`.
1. Click `Send data`, will see `Sent datagram: hello world` in `Event Log`, but there are no response.
1. Clone this repo `gh repo clone fanweixiao/webtransport-serverless-demo` and open it in your favorite terminal.
1. Install `YoMo CLI`: `$ curl -fsSL "https://bina.egoist.sh/yomorun/cli?name=yomo" | sh`
1. Run `yomo run -u "edge.yomo.dev:9000" -d "app-key-secret:${YOUR_APP_KEY}|${YOUR_APP_SECRET}" -n testwt ./func.go`
1. Back to Chrome, Click `Send data`, will see the response `Datagram received: HELLO WORLD` in `Event Log`.