a rust poc with actixweb and rustls backend + and sveltekit websocket client frontend
from actix/examples/tree/master/https-tls/rustls
If you want to generate your own cert/private key file, then run:
$ mkdir /tmp/certs
$ cd /tmp/certs
$ mkcert -key-file key.pem -cert-file cert.pem 127.0.0.1 localhost
$ cd server
$ cargo run
[2023-11-30T22:18:36Z INFO actixweb_rustls_server_example] starting HTTPS server at https://localhost:8443
websocat -k wss://192.168.1.84:8443/ws/
websocat -k ws://192.168.1.84:8080/ws/
$ cd client
$ pnpm i
$ pnpm dev
➜ Local: http://localhost:5173/