lit icon indicating copy to clipboard operation
lit copied to clipboard

Document Websocket protocol

Open creationix opened this issue 11 years ago • 3 comments

...In case someone wants to write a browser client or some other client to it.

creationix avatar Feb 24 '15 03:02 creationix

Maybe I did not look carefully enough, but please also document why you are using websockets itself instead of ftp / http + rest / git server ...

d-kr avatar Feb 27 '15 16:02 d-kr

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).

creationix avatar Feb 27 '15 16:02 creationix

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.

creationix avatar Feb 27 '15 16:02 creationix