add Conn interface, WASM client with WebTransport transport

- Conn interface: abstracts datagram I/O (Read/Write/SetReadDeadline/Close)
- Client.DialConn(): create client over any Conn (not just UDP)
- cmd/mosh-wasm: WASM binary exposing moshConnect(url, key) to JS
- WebTransport adapter: browser datagrams as mosh.Conn
- Build tags: server.go and framebuffer.go excluded from js/wasm
- Shared constants moved to conn.go

Existing UDP paths unchanged. Latch unaffected.
This commit is contained in:
realrasengan
2026-03-30 12:05:33 -07:00
parent 0f15d99fbc
commit bbe416444b
9 changed files with 486 additions and 17 deletions
+2
View File
@@ -1,3 +1,5 @@
//go:build !js
package mosh
import (