Service Workers is the right term in 2022 apparently.
Discussion
https://stackoverflow.com/questions/61865890/run-websocket-in-web-worker-or-service-worker-javascript comments on the issue of multiple tabs with same WSs.
thanks! bookmarked. will be attempting to optimize the db worker for astral in next round of updates