An simple example application of powt that WebTransport server and client javascript wrapper library.
on using SSH:
git clone git@github.com:tadfmac/powt-example1.git
on using HTTPS:
git clone https://github.com/tadfmac/powt-example1.git
Or you can download zip file directly from this repo, and unzip it and rename folder powt-example1-main
to powt-example1
.
Install mkcert to generate the local certificate.
Please see bellow : https://github.com/FiloSottile/mkcert?tab=readme-ov-file#installation
cd powt-example/cert
mkcert --install
mkcert localhost
ls
If localhost.pem
and localhost-key.pem
are found in current directory (powt-example/cert
), the certificate is generated successfully.
cd ..
npm i
node ./app.mjs
Type the bellow URL in address bar on your browser (only chrome or chrome base browser).
On Chrome:
chrome://flags
On Opera:
opera://flags
Then, type the bellow in serch box on flags page.
webtransport
Find the flag Name WebTransport Developer Mode
, it should be change to enabled
.
After change it, the browser should be restart.
Type the bellow URL in address bar on your browser.
https://localhost:4445
MIT