progrium / qmux

wire protocol for multiplexing connections or streams into a single connection, based on a subset of the SSH Connection Protocol
MIT License
229 stars 46 forks source link

typescript: split transport into deno and browser modules #15

Open progrium opened 3 years ago

progrium commented 3 years ago

this way transport/index.ts can check for deno and import/re-export the deno module transports, otherwise import/re-export the browser module transports.

progrium commented 3 years ago

besides websocket, future possible browser transports include window.postMessage and WebTransport (quic!)

progrium commented 3 years ago

also my assumption is that actually using with deno will be done with direct links of some kind, while browser will be only need for bundling, but would love to confirm. not interested in releasing for nodejs.