Ta Relay on Cloudflare Workers
The relay of @celljs/ta-relay on Cloudflare Workers: one Durable Object per host, which its devices connect to as well. It uses WebSocket hibernation, so the object does not stay in memory while no messages flow.
bash
bun run dev # run locally (wrangler dev), at http://127.0.0.1:8787
bun run deploy # deploy to the current Cloudflare account (CLOUDFLARE_API_TOKEN), domain from routes in wrangler.jsonc
ta pair https://relay.cellbang.comRelay only stores the hash of each host's key to prevent other hosts from claiming the same id. Forwarded content is encrypted. A single WebSocket message is constrained by the Workers' size limit.