[websocket] use Ref for better state management

2 jobs for dev-websockets in 6 minutes and 10 seconds (queued for 2 minutes and 47 seconds)
Status Job ID Name Coverage
  Compile
failed #13394
compile

00:06:10

 
  Test
skipped #13395
test
 
Name Stage Failure
failed
compile Compile There has been a runner system failure, please try again
ERROR: Preparation failed: adding cache volume: set volume permissions: create permission container for volume "runner-rgnqjxjs-project-32-concurrent-0-cache-3c3f060a0374fc8bc39395164f415a70": Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (linux_set.go:95:120s)
Will be retried in 3s ...
Using Docker executor with image nixos/nix:2.22.0 ...
ERROR: Preparation failed: adding cache volume: set volume permissions: create permission container for volume "runner-rgnqjxjs-project-32-concurrent-0-cache-3c3f060a0374fc8bc39395164f415a70": Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (linux_set.go:95:120s)
Will be retried in 3s ...
Using Docker executor with image nixos/nix:2.22.0 ...
ERROR: Preparation failed: adding cache volume: set volume permissions: create permission container for volume "runner-rgnqjxjs-project-32-concurrent-0-cache-3c3f060a0374fc8bc39395164f415a70": Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (linux_set.go:95:120s)
Will be retried in 3s ...
ERROR: Job failed (system failure): adding cache volume: set volume permissions: create permission container for volume "runner-rgnqjxjs-project-32-concurrent-0-cache-3c3f060a0374fc8bc39395164f415a70": Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? (linux_set.go:95:120s)