mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 14:50:03 -04:00
update readme
This commit is contained in:
parent
228ddac643
commit
9d7e6f3c9c
1 changed files with 0 additions and 6 deletions
|
@ -47,12 +47,6 @@ const conn = new BareMuxConnection("/bare-mux/worker.js");
|
|||
// If your transport is an ES module and exports the class as the default export
|
||||
await conn.setTransport("/bare-mux/transport-module.js", ["arg1", "ws://localhost:4000"]);
|
||||
|
||||
// Set Transport Manually
|
||||
await conn.setManualTransport(`
|
||||
const exports = await import("/bare-mux/transport.js");
|
||||
return new exports.BareClient("https://tomp.app");
|
||||
`);
|
||||
|
||||
/// As a proxy developer
|
||||
import { BareClient } from "@mercuryworkshop/bare-mux";
|
||||
const client = new BareClient();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue