runtime/internal/lib/xwebsocket: Implement ws and wsh protocols for
flow.RegisterProtocol.

This change usees websocket framing when possible instead of double
framing connections on websocket connections.
The bulk of the code is the same with minor modifications, switching
from net.conn to flow.MsgReadWriterCloser and net.Listener to
flow.MsgListener, etc.
I also rewrote ws_test to try to make it simpler.

The new code is in an xwebsocket package so that we can remove the
old code more easily once we complete the transition.

Change-Id: I1d7cd8aae89049845acd5a0e6c2dfbac9a91b155
13 files changed
tree: 9c1b6deafac4ad2d52a234852f1621f9351d0c4d
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTORS
  11. envvar.go
  12. envvar_test.go
  13. LICENSE
  14. PATENTS
  15. README.md
  16. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.