diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..c4c2f4a --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,5 @@ +import ProtomuxRPC from "protomux-rpc"; +export default class RPC extends ProtomuxRPC { + constructor(stream: any, options?: {}); +} +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map new file mode 100644 index 0000000..26ac068 --- /dev/null +++ b/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,cAAc,CAAA;AAOtC,MAAM,CAAC,OAAO,OAAO,GAAI,SAAQ,WAAW;gBAC5B,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK;CASxC"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..c7c6740 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,17 @@ +// @ts-ignore +import ProtomuxRPC from "protomux-rpc"; +// @ts-ignore +import c from "compact-encoding"; +import b4a from "b4a"; +const ID = b4a.from("lumeweb"); +export default class RPC extends ProtomuxRPC { + constructor(stream, options = {}) { + options = { + ...{ + id: ID, + valueEncoding: c.json + }, ...options + }; + super(stream, options); + } +}