Skip to content

fanweixiao/webtransport-serverless-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebTransport Serverless Demo

Webtransport serverless yomo

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