Document Websocket protocol
...In case someone wants to write a browser client or some other client to it.
Maybe I did not look carefully enough, but please also document why you are using websockets itself instead of ftp / http + rest / git server ...
I initially used raw TCP since I just need a fast socket to talk commands over, but it was blocked by some network proxies. wss:// is almost universally supported in networks since it goes over port 443 and is encrypted so the proxy can't muck with it. https:// would work too, but it's much higher latency.
Also the protocol isn't the same use case as git's pack protocol since I don't use commits at all (pack protocol is based on commits).
Plus implementing client and server for websockets is fairly trivial. Also now websites can talk to the lit server since websockets are cross-domain by default unlike http.