fix: reduce spam requests on /status
authorxangelo <me@xangelo.ca>
Wed, 9 Aug 2023 17:22:26 +0000 (13:22 -0400)
committerxangelo <me@xangelo.ca>
Wed, 9 Aug 2023 17:22:26 +0000 (13:22 -0400)
commit5862d256b0140e43be6c7f1b8303d540ac7cca99
tree233e417e565b3f480d9f8da15573e04ad10b39d1
parent4993906d024b0555e27d54161e3dc89a7a101e83
fix: reduce spam requests on /status

Instead of pinging the `/status` endpoint we send a status ws event when
there's a new connect/disconnect to the server.
public/assets/bundle.js
public/index.html
src/client/htmx.ts
src/server/api.ts