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:
@@ -1,3 +1,5 @@
|
||||
//go:build !js
|
||||
|
||||
package mosh
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user